Repository navigation
Switch rules_tinygo from fork to upstream - #60
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Points the
rules_tinygogit_overrideinMODULE.bazelatptxmac/rules_tinygo(the head ofmaster) instead of thebenbirt/rules_tinygofork, and updates the comments andREADME.mdto match. Upstream now has the changes tlog-viewer needed from the fork: offlineembedbuilds, the Go SDK taken fromrules_go, and debug information stripped in a default build.Upstream's TinyGo toolchain has no
versionfield, whichwasm_noticesinverifier/tinygo.bzlused for the{tinygo}placeholder inNOTICE.txt. The rule now runstinygo versionin 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 nomainbranch.Checked with
bazel test //...(10 tests pass, including the agreement test against the Go compiler's build). Built//verifier:noticesand checked thatNOTICE.txtstill begins "... (MIT) by TinyGo 0.42.0.".🤖 Generated with Claude Code