Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

chore: update ipfs-unixfs-engine dependency #1523

Merged
merged 4 commits into from
Aug 23, 2018
Merged

Conversation

alanshaw
Copy link
Member

fixes #1518

@lidel do you have time to verify this fix?

License: MIT
Signed-off-by: Alan Shaw <[email protected]>
@alanshaw alanshaw requested a review from lidel August 21, 2018 15:40
@ghost ghost assigned alanshaw Aug 21, 2018
@ghost ghost added the status/in-progress In progress label Aug 21, 2018
@alanshaw
Copy link
Member Author

ha, tests are failing because they're wrong - they're expecting the CID of the empty file zdj7WiLc855B1KPRgV7Fh8ivjuAhePE1tuJafmxH5HmmSjqaD 🤣 😭

Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

LGTM!

I re-tested ipfs/js-ipfs-http-response#9 with js-ipfs from this branch (@ eb1b3b3) and AFAIK the issue is fixed, CIDv1 tests pass, CID of actual file is returned as expected 👌

@alanshaw
Copy link
Member Author

Thanks @lidel - the issue now appears to be interop with go-ipfs when the file is < max chunk size - you get a different CID to go-ipfs.

@alanshaw alanshaw changed the title chore: update ipfs-unixfs-engine dependency [WIP] chore: update ipfs-unixfs-engine dependency Aug 22, 2018
The raw leaves option should not be defaulted to false as its value is set to true by unixfs-engine if CID version is set and the user has not specified a value for raw leaves.

Also adds tests cases for CID version option with different file sizes.

License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
@alanshaw alanshaw changed the title [WIP] chore: update ipfs-unixfs-engine dependency chore: update ipfs-unixfs-engine dependency Aug 23, 2018
@alanshaw alanshaw merged commit dbf17a3 into master Aug 23, 2018
@ghost ghost removed the status/in-progress In progress label Aug 23, 2018
@alanshaw alanshaw deleted the fix/update-deps-20180821 branch August 23, 2018 19:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ipfs.files.add with {cidVersion: 1} returns CID of an empty file
2 participants