You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stamped rules_go binaries cannot report their source revision or dirty
state through runtime/debug or go version -m. This is needed because
users expect the same provenance checks supported by cmd/go-built
module binaries.
Map STABLE_BUILD_SCM_VCS, REVISION, TIME, and STATUS workspace values
to Go's vcs.* settings. Filter those keys in a separate action so
unrelated stable status changes do not relink binaries, normalize times
to UTC, and use the Go 1.20 debug.BuildSetting API directly.
Only stamp executable build info when the target and recorded main
module both come from the main workspace. Preserve that provenance
through embeds and tests so external binaries and wrappers cannot be
misattributed to the caller workspace.
Document the convention and cover stable refreshes, go_binary and
go_test, external provenance, non-executable modes, and stamp inputs.
0 commit comments