Skip to content

Switch rules_tinygo from fork to upstream - #60

Merged
benbirt merged 1 commit into
mainfrom
upstream-rules-tinygo
Dec 1, 2026
Merged

benbirt merged 1 commit into
mainfrom
upstream-rules-tinygo

Conversation

@benbirt

@benbirt benbirt commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Points the rules_tinygo git_override in MODULE.bazel at ptxmac/rules_tinygo (the head of master) instead of the benbirt/rules_tinygo fork, and updates the comments and README.md to match. Upstream now has the changes tlog-viewer needed from the fork: offline embed builds, the Go SDK taken from rules_go, and debug information stripped in a default build.

Upstream's TinyGo toolchain has no version field, which wasm_notices in verifier/tinygo.bzl used for the {tinygo} placeholder in NOTICE.txt. The rule now runs tinygo version in its action and takes the third word of the output, failing if it does not look like a version.

Depends on benbirt/github-infra#36: upstream's default branch is master, so without that change the scheduled update job fails on a remote with no main branch.

Checked with bazel test //... (10 tests pass, including the agreement test against the Go compiler's build). Built //verifier:notices and checked that NOTICE.txt still begins "... (MIT) by TinyGo 0.42.0.".

🤖 Generated with Claude Code

Point the rules_tinygo git_override in MODULE.bazel at
ptxmac/rules_tinygo (the head of its master branch) instead of the
benbirt/rules_tinygo fork. Upstream now has the changes tlog-viewer
needed from the fork: offline embed builds, the Go SDK taken from
rules_go, and debug information stripped in a default build.

Upstream's TinyGo toolchain has no version field. wasm_notices in
verifier/tinygo.bzl now runs tinygo version in its action to fill the
{tinygo} placeholder in NOTICE.txt, failing if the third word does not
look like a version.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@benbirt
benbirt marked this pull request as ready for review December 1, 2026 17:08
@benbirt
benbirt merged commit bd0bbb6 into main Dec 1, 2026
3 checks passed
@benbirt
benbirt deleted the upstream-rules-tinygo branch December 1, 2026 17:10
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.

1 participant