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

Add left-stripping functionality #13

Closed
adityasaky opened this issue Oct 6, 2021 · 0 comments · Fixed by #19
Closed

Add left-stripping functionality #13

adityasaky opened this issue Oct 6, 2021 · 0 comments · Fixed by #19
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest

Comments

@adityasaky
Copy link
Member

in-toto's python and go implementations provide an option to provide patterns that can be used to left-strip artifact paths. One example where this is important is #12, where instead of recording /tmp/rebuilderd7oil7Z/inputs/vultr-cli-2.8.3-1-x86_64.pkg.tar.zst, we want to record vultr-cli-2.8.3-1-x86_64.pkg.tar.zst.

For reference, the python implementation can be found here: https://github.com/in-toto/in-toto/blob/develop/in_toto/runlib.py#L94
And the go implementation can be found here: https://github.com/in-toto/in-toto-golang/blob/master/in_toto/runlib.go#L179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest
Projects
None yet
1 participant