Skip to content

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 <thesayyn@gmail.com>

rename flag

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

Co-authored-by: Akihiro Suda <suda.kyoto@gmail.com>
Signed-off-by: thesayyn <thesayyn@gmail.com>
@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
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