Skip to content

Do not fail the build without a buf release. - #165

Closed
3405691582 wants to merge 1 commit into
bufbuild:mainfrom
3405691582:openbsd
Closed

3405691582 wants to merge 1 commit into
bufbuild:mainfrom
3405691582:openbsd

Conversation

@3405691582

Copy link
Copy Markdown

A module that depends on rules_buf, even transitively and even if it never runs buf, pulls rules_buf's register_toolchains() into the module graph. Toolchain resolution then evaluates the buf_download_releases repository for every build, and on a host rules_buf does not explicitly support its fail() aborts the whole build.

Produce an empty repository instead, so nothing is registered and only targets that actually need buf fail on such hosts.

A module that depends on rules_buf, even transitively and even if it
never runs buf, pulls rules_buf's register_toolchains() into the
module graph. Toolchain resolution then evaluates the
buf_download_releases repository for every build, and on a host
rules_buf does not explicitly support its fail() aborts the whole
build.

Produce an empty repository instead, so nothing is registered and only
targets that actually need buf fail on such hosts.
@pkwarren

pkwarren commented Nov 5, 2026

Copy link
Copy Markdown
Member

Thank you for the contribution - I think we may need some additional changes and we'd need the CLA to be signed but I'm interested if #166 will fix the underlying issue (based on the branch name openbsd). The Buf CLI has supported openbsd since v1.67.0 however the default version used by the Bazel rules predated those changes.

Ref: https://github.com/bufbuild/buf/releases/tag/v1.67.0

@3405691582

Copy link
Copy Markdown
Author

I think the fail() is still inapposite but I think you're right that #166 will fix the underlying issue, so I'll close this. If there's still issues, we'll reopen.

@3405691582 3405691582 closed this Nov 5, 2026
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