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

RPM rule integrity and mnemonics #62

Merged
merged 2 commits into from
Oct 4, 2023
Merged

Conversation

malt3
Copy link
Contributor

@malt3 malt3 commented Aug 18, 2023

Two small changes:

Add "integrity" as alternative for "sha256" in rpm rule

This is an alternative format for specifying the expected hash. It specifies the expected checksum in Subresource Integrity format of the file downloaded.

Add mnemonics to rpm2tar and tar2files

When using remote cache in Bazel, some IO intensive actions are slower when using the remote cache (vs always redoing the action locally). This behavior can be controlled using the flag --modify_execution_info.
See also: https://blog.aspect.dev/bazelrc-flags

Mnemonics are required to modify the execution info of a rule using:
build --modify_execution_info=Rpm2Tar=+no-remote
@rmohr
Copy link
Owner

rmohr commented Oct 4, 2023

Cool!

@rmohr rmohr merged commit 26b99c1 into rmohr:main Oct 4, 2023
1 check passed
@malt3 malt3 deleted the rpm-rule-integrity branch October 5, 2023 05:12
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