-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ipfs add with two files only adds one of them in 0.4.20 #6254
Comments
on the cli, it doesn't seem to be the argument order that determines which file will be added, but the first on when alphabetically ordered. If you add a.txt and b.txt it doesn't matter which order you pass them in, it's always the CID for a.txt that gets reported $ ipfs add b.txt a.txt
added QmNRpQVA5n7osjtyjYaWEQpwYnbV1QoVkrSe7oyccMJh1m a.txt
2 B / 4 B [================================>--------------------------------] 50.00%
$ ipfs add a.txt b.txt
added QmNRpQVA5n7osjtyjYaWEQpwYnbV1QoVkrSe7oyccMJh1m a.txt
2 B / 4 B [================================>--------------------------------] 50.00% |
It's a little worse than that - it actually only adds one file: ⨎ ipfs add --only-hash extreme-closeup.jpg
added QmdpvgAXfyhyk4Erwge93CkiWt7TpndYm4SW3mZndRBpsc extreme-closeup.jpg
70.99 KiB / 70.99 KiB [=============================================================================================================================] 100.00%
⨎ ipfs add alan-cat.jpg extreme-closeup.jpg
added QmXmYiRaRg4YRVdtPRv3CgH1sje7xzjNPv9yCyUcSe8SAC alan-cat.jpg
100.83 KiB / 171.81 KiB [========================================================================>--------------------------------------------------] 58.68%
⨎ ipfs ls QmdpvgAXfyhyk4Erwge93CkiWt7TpndYm4SW3mZndRBpsc
Error: merkledag: not found |
This is probably a regression from #6019. Should be easy to fix |
Pushed a fix: #6255 |
Does this relate to #3300? |
Answer: no. That's an issue in go-ipfs-cmds (we put all arguments into a single directory) |
Could you share a rough ETA for when this fix will land in a release so we can schedule an ipfs-desktop release. Folks are going to start asking us for a relase with 0.4.20 in, but this is a blocker for that. |
Version information:
Type: bug
Description:
Adding 2 files via the CLI returns the cid for only 1 of the files:
For comparison, on 0.4.19
Same issue occurs via the http api, found will debugging a build failure on js-ipfs-http-client after updating to 0.4.20, see: ipfs-inactive/js-ipfs-http-client#973
The text was updated successfully, but these errors were encountered: