Skip to content

Tidy each Go module instead of go work sync#413

Merged
jupblb merged 2 commits into
mainfrom
michal/tidy-each-module
May 13, 2026
Merged

Tidy each Go module instead of go work sync#413
jupblb merged 2 commits into
mainfrom
michal/tidy-each-module

Conversation

@jupblb
Copy link
Copy Markdown
Member

@jupblb jupblb commented May 13, 2026

go work sync propagates require directives across workspace modules but does not add the /go.mod h1: checksum lines that newly-introduced transitive deps need, so the downstream Nix build still fails with:

missing go.sum entry for go.mod file; to add it:
go mod download

Run go mod tidy in each module instead. Tidy bindings/go/scip first because root and reprolang pull it in via replace.

@jupblb jupblb changed the title Tidy _each_ Go module instead of go work sync Tidy each Go module instead of go work sync May 13, 2026
`go work sync` propagates require directives across workspace modules
but does not add the `/go.mod h1:` checksum lines that newly-introduced
transitive deps need, so the downstream Nix build still fails with:

  missing go.sum entry for go.mod file; to add it:
    go mod download <module>

Run `go mod tidy` in each module instead. Tidy bindings/go/scip first
because root and reprolang pull it in via `replace`.
@jupblb jupblb force-pushed the michal/tidy-each-module branch from 7347130 to b24f0ff Compare May 13, 2026 14:54
@jupblb jupblb marked this pull request as draft May 13, 2026 15:02
@jupblb jupblb force-pushed the michal/tidy-each-module branch 3 times, most recently from 3e940fc to 020cde1 Compare May 13, 2026 16:51
@jupblb jupblb marked this pull request as ready for review May 13, 2026 16:54
@jupblb jupblb requested review from eseliger and trly May 13, 2026 16:54
@jupblb jupblb enabled auto-merge (squash) May 13, 2026 16:55
actions/setup-go installs the exact patch version from go.mod
(1.25.0) while the Nix build uses pkgs.go from the locked nixpkgs
(currently 1.25.6); even patch-level skew can mutate go.sum
differently than the build expects.

Drop setup-go and run `go mod tidy` under
`nix shell --inputs-from . nixpkgs#go` so tidy uses exactly the
toolchain the Nix build will use.
@jupblb jupblb force-pushed the michal/tidy-each-module branch from 020cde1 to dcd4a51 Compare May 13, 2026 16:58
@jupblb jupblb merged commit 510236c into main May 13, 2026
12 checks passed
@jupblb jupblb deleted the michal/tidy-each-module branch May 13, 2026 18:04
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.

2 participants