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

fix: add cross-impl shard test, fix path cleaner #358

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Aug 25, 2023

Ref: ipfs/go-unixfsnode#66

The material change in here is the path cleaner/splitter; it's a bit too aggressive. It doesn't allow \ as a file name and the .trim() discounts valid file names. Otherwise this is a match for ipfs/go-unixfsnode#66 and gets the same CID on importer, and tests the exporter can read the same data.

rvagg added a commit to ipfs/go-unixfsnode that referenced this pull request Aug 25, 2023
Base automatically changed from fix/pad-length to master August 25, 2023 10:31
@rvagg rvagg force-pushed the rvagg/fanout-tests branch 2 times, most recently from 570dae3 to c5ff577 Compare August 25, 2023 11:31
.trim()
.match(/([^\\/]|\\\/)+/g) ?? [])
.filter(Boolean)
return path.split(/(?<!\\)\//).filter(Boolean)
Copy link
Member Author

@rvagg rvagg Aug 25, 2023

Choose a reason for hiding this comment

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

it's also a little odd to escape \ here because we don't do that elsewhere in ipfs-land, paths officially have no escaping mechanism but 🤷

@achingbrain achingbrain merged commit 00293b3 into master Aug 25, 2023
16 checks passed
@achingbrain achingbrain deleted the rvagg/fanout-tests branch August 25, 2023 14:22
@achingbrain
Copy link
Member

Thanks!

github-actions bot pushed a commit that referenced this pull request Aug 25, 2023
## [ipfs-unixfs-importer-v15.2.1](ipfs-unixfs-importer-v15.2.0...ipfs-unixfs-importer-v15.2.1) (2023-08-25)

### Bug Fixes

* add cross-impl shard test, fix path cleaner ([#358](#358)) ([00293b3](00293b3))
github-actions bot pushed a commit that referenced this pull request Aug 25, 2023
## [ipfs-unixfs-exporter-v13.2.1](ipfs-unixfs-exporter-v13.2.0...ipfs-unixfs-exporter-v13.2.1) (2023-08-25)

### Bug Fixes

* add cross-impl shard test, fix path cleaner ([#358](#358)) ([00293b3](00293b3))
rvagg added a commit to ipfs/go-unixfsnode that referenced this pull request Aug 25, 2023
rvagg added a commit to ipfs/go-unixfsnode that referenced this pull request Aug 25, 2023
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.

3 participants