From ee1976fc9af91e5519b42c8c0c186308e6fce782 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 29 Jun 2026 07:53:47 -0400 Subject: [PATCH] ci(release): go mod tidy in go-get smoke to populate transitive go.sum `go get .../v4@latest` adds the module but not its transitive deps' go.sum entries; the consumer `go build` then failed on a missing go.sum entry for a transitive dep (cbor/v2 via /v4/ui). v1.1.0 had no such deps, so this only surfaced once the smoke targeted the real /v4 module. Run `go mod tidy` after `go get` to populate the full closure before building. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28fd1591..5e79177f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -114,6 +114,10 @@ jobs: Set-Content -Path (Join-Path $workDir "main.go") -Value $main -Encoding utf8 go get github.com/monstercameron/GoWebComponents/v4@latest if ($LASTEXITCODE -ne 0) { throw "go get GoWebComponents/v4@latest failed" } + # Populate go.sum for the full transitive closure so the consumer build resolves every + # dependency (go get of the module alone does not add transitive deps' go.sum entries). + go mod tidy + if ($LASTEXITCODE -ne 0) { throw "go mod tidy of consumer failed" } go build ./... if ($LASTEXITCODE -ne 0) { throw "native consumer build failed" } $env:GOOS = "js"; $env:GOARCH = "wasm"