Skip to content

fix(cli/parse): extract dir before name #230

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

Merged
merged 2 commits into from
Apr 15, 2022

Conversation

schomatis
Copy link
Contributor

@schomatis schomatis commented Apr 5, 2022

Syncing to commit protocol/.github@2aab7c0.

@schomatis schomatis requested a review from guseggert April 5, 2022 17:02
@schomatis schomatis self-assigned this Apr 5, 2022
@github-actions
Copy link

github-actions bot commented Apr 5, 2022

Suggested version: v0.8.1
Comparing to: v0.8.0 (diff)

Changes in go.mod file(s):

(empty)

gorelease says:

# summary
Suggested version: v0.8.1

gocompat says:

(empty)

Copy link
Contributor

@Jorropo Jorropo left a comment

Choose a reason for hiding this comment

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

The change looks good, however this error message is terribely spammy:

Error: file name x repeated under different import directories: dir2 and dir1

USAGE
  ipfs add <path>... - Add a file or directory to IPFS.

  ipfs add [--recursive | -r] [--dereference-args] [--stdin-name=<stdin-name>] [--hidden | -H] [--ignore=<ignore>]... [--ignore-rules-path=<ignore-rules-path>] [--quiet | -q] [--quieter | -Q] [--silent]
           [--progress | -p] [--trickle | -t] [--only-hash | -n] [--wrap-with-directory | -w] [--chunker=<chunker> | -s] [--pin=false] [--raw-leaves] [--nocopy] [--fscache] [--cid-version=<cid-version>]
           [--hash=<hash>] [--inline] [--inline-limit=<inline-limit>] [--] <path>...

  Adds the content of <path> to IPFS. Use -r to add directories (recursively).

  For more information about each command, use:
  'ipfs add <subcmd> --help'


Dumping the help isn't helpfull and dilute the signal.
I would expect the same thing as other APIs:

$ ./ipfs pin add Qmfoo
Error: invalid path "Qmfoo": selected encoding not supported

@schomatis
Copy link
Contributor Author

@Jorropo I don't understand exactly what's your requested change here. The above is the behavior for any command error, e.g., ipfs add foo. You should submit an independent issue to discuss that.

@schomatis schomatis dismissed Jorropo’s stale review April 13, 2022 13:22

Not relevant to PR here.

@schomatis schomatis merged commit e9b3867 into master Apr 15, 2022
Copy link
Contributor

@Jorropo Jorropo left a comment

Choose a reason for hiding this comment

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

LGTM then

@schomatis schomatis deleted the schomatis/fix/cli/parse/extract-dir-before-base branch April 15, 2022 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants