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

feat: implement treat-canonical-paths-equal flag #68

Merged

Conversation

thesayyn
Copy link
Contributor

@thesayyn thesayyn commented Mar 2, 2024

When tars extracted, essentially `` (no prefix) , / (leading slash), `./` (dot slash) all mean the same thing, relative to `chroot` of the container.

This flag implements a feature where these paths are considered the same.

I didn't add any tests, as i didn't know where to put them.

@AkihiroSuda
Copy link
Member

Could you squash the commits?

@thesayyn
Copy link
Contributor Author

thesayyn commented Mar 4, 2024

Done

Signed-off-by: thesayyn <[email protected]>

rename flag

Update cmd/diffoci/commands/diff/diff.go

Co-authored-by: Akihiro Suda <[email protected]>
Signed-off-by: thesayyn <[email protected]>
@thesayyn
Copy link
Contributor Author

thesayyn commented Mar 5, 2024

Done, PTAL

Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks

@AkihiroSuda AkihiroSuda changed the title feat: implement --canonical-paths flag feat: implement treat-canonical-paths-equal flag Mar 5, 2024
@AkihiroSuda AkihiroSuda merged commit be86d38 into reproducible-containers:master Mar 5, 2024
3 checks passed
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