Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special-case accepting explicitly supplied named pipes #184

Merged
merged 4 commits into from
Mar 16, 2020

Conversation

ribasushi
Copy link
Contributor

This is properly tested in go-ipfs ( can't open PR before bubbling this as a release )

cli/parse.go Outdated
if err != nil {
return nil, err
}
return files.NewReaderPathFile(fpath, file, stat)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The path & stat should be nil.

  • The path should only refer to files that can actually be read. The filestore/urlstore features will use it.
  • The stat will be used to determine the size of the file. It'll give us very incorrect information in this case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path is a string, so I went with "" ( thought of using newMessageReader but proably incorrect in this case ). There were zero changes needed in the go-ipfs test suite ( aside from ipfs/kubo#6998 obviously ), so this seems like the right thing to do.

CHANGELOG.md Outdated Show resolved Hide resolved
@Stebalien Stebalien merged commit 0c2a21b into master Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants