Skip to content

fix: go mod tidy — add missing h1: sums for indirect deps - #119

Merged
neverDefined merged 1 commit into
mainfrom
fix/go-sum-tidy
Apr 27, 2026
Merged

fix: go mod tidy — add missing h1: sums for indirect deps#119
neverDefined merged 1 commit into
mainfrom
fix/go-sum-tidy

Conversation

@neverDefined

Copy link
Copy Markdown
Owner

Summary

The v0.2.0 release build failed in goreleaser with:

```
git is in a dirty state
Please check in your pipeline what can be changing the following files:
M go.sum
```

Root cause: go.sum was missing `h1:` hashes for three indirect dependencies — `golang/snappy`, `syndtr/goleveldb`, and `pgregory.net/rapid`. The Go toolchain runs an implicit `go mod download` during the release pipeline which materializes the hashes, leaving go.sum modified at goreleaser's pre-build validation.

This commit runs `go mod tidy` locally and commits the result so subsequent release pipelines start from a clean tree.

Test plan

  • `go mod tidy` produces no further changes after this commit.
  • `make ai-check` green.

Next step

Once merged, the v0.2.0 tag will be deleted (locally + remote) and re-cut from the new HEAD so the release build can run cleanly. No GitHub Release was published from the original tag — only the bricked tag pointer.

🤖 Generated with Claude Code

goreleaser's strict mode rejected v0.2.0's release build with "git is
in a dirty state" because go.sum was missing h1: hashes for three
indirect dependencies — golang/snappy, syndtr/goleveldb, and
pgregory.net/rapid. The Go toolchain ran an implicit go mod download
during the release pipeline which materialized the hashes, leaving
go.sum modified at validation time.

Run go mod tidy locally and commit so subsequent release pipelines
start from a clean tree.

No code changes; ai-check green.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@neverDefined
neverDefined merged commit 2ce9555 into main Apr 27, 2026
4 checks passed
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.

1 participant