Skip to content

Add sha256 support for bzlmod case#61

Merged
srikrsna-buf merged 1 commit intobufbuild:mainfrom
adrianimboden:mr
May 15, 2024
Merged

Add sha256 support for bzlmod case#61
srikrsna-buf merged 1 commit intobufbuild:mainfrom
adrianimboden:mr

Conversation

@adrianimboden
Copy link
Copy Markdown
Contributor

I started to use rules_rust, which uses rules_buf.
I also use bzlmod and download all dependencies ahead of time to support builds without internet access.

For this to work, all downloads from the internet need to provide sha256 hash in the download actions. I saw that for the WORKSPACE style usage, this already works (buf_download_releases already supports that).

This MR adds the correct hash for v1.28.1 and allows to also override the hash in addition to the version.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 29, 2024

CLA assistant check
All committers have signed the CLA.

@calebzulawski
Copy link
Copy Markdown

calebzulawski commented May 14, 2024

I just ran into this and would like this supported as well. We use --repository_disable_download in some situations and I am unable to use rules_lint which depends on rules_buf.

@srikrsna-buf srikrsna-buf changed the title enable sha256 support for bzlmod case Add sha256 support for bzlmod case May 15, 2024
@srikrsna-buf srikrsna-buf merged commit 35408b9 into bufbuild:main May 15, 2024
@srikrsna-buf srikrsna-buf mentioned this pull request May 22, 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.

4 participants