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
go/v1.0.0: go mod tidy fails in every consumer module.
Measured with a fresh consumer importing github.com/wave-rf/chtypes/go/chtypes at v1.0.0 from the Go proxy:
go: github.com/wave-rf/chtypes/go/chtypes imports
github.com/wave-rf/chtypes/go/internal/testhook: module github.com/wave-rf/chtypes/go@latest found (v1.0.0),
but does not contain package github.com/wave-rf/chtypes/go/internal/testhook
Because tidy fails, the consumer's go.sum stays incomplete, so go build also fails until it is worked around: missing go.sum entry … github.com/klauspost/compress/zstd.
go build, go vet and go mod verify on the module itself are fine.
Cause:
Five retained 0.x files in go/chtypes/ (fetch.go, fetch_sign.go, multiversion.go, registry_path.go, resolve.go) are excluded from the build by //go:build chtypes_v0_retired.
go mod tidy considers every build tag except ignore, so it resolves their imports, including go/internal/testhook, which no longer exists.
The release verification's Go consumer module then drops its own -e, so every release dry run and every post-publish check runs a consumer go mod tidy and catches this class.
go/v1.0.0:
go mod tidyfails in every consumer module.Measured with a fresh consumer importing
github.com/wave-rf/chtypes/go/chtypesat v1.0.0 from the Go proxy:go.sumstays incomplete, sogo buildalso fails until it is worked around:missing go.sum entry … github.com/klauspost/compress/zstd.go build,go vetandgo mod verifyon the module itself are fine.Cause:
go/chtypes/(fetch.go,fetch_sign.go,multiversion.go,registry_path.go,resolve.go) are excluded from the build by//go:build chtypes_v0_retired.go mod tidyconsiders every build tag exceptignore, so it resolves their imports, includinggo/internal/testhook, which no longer exists.Workaround until the fix ships:
go mod tidy -e.Fix (measured locally):
//go:build ignore, whichgo mod tidyexcludes.go mod tidypasses WITHOUT-e, and leavesgo.mod/go.sumunchanged;go mod tidyandgo mod tidy -diffexit 0;-e, so every release dry run and every post-publish check runs a consumergo mod tidyand catches this class.Ships as go/v1.0.1.
🤖 Generated with Claude Code