Repository navigation
fix(v3): regenerate go.sum after refresh v1.0.0 bump (#5526) - #5532
Conversation
Commit #5526 bumped github.com/atterpac/refresh to v1.0.0 in v3/go.mod but left v3/go.sum with only the v0.8.6 checksums. Any build that runs with -mod=readonly (e.g. `task install` -> `go install ./cmd/wails3`, the "Build Wails3 CLI" CI step) therefore fails with: internal/commands/watcher.go:6:2: missing go.sum entry for module providing package github.com/atterpac/refresh/engine This breaks the template-build matrix on every open PR. The Go test jobs masked it because `task test:examples` runs `go mod tidy` first. `go mod tidy` regenerates the missing refresh v1.0.0 checksums and propagates the indirect bump of lmittmann/tint v1.0.3 -> v1.1.3 that refresh v1.0.0's go.mod requires (a refresh-only patch would next fail on a missing tint checksum).
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
WalkthroughThis PR updates the indirect dependency ChangesDependency Updates
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.2)level=error msg="[linters_context] typechecking error: pattern ./...: directory prefix . does not contain main module or its selected dependencies" Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR fixes the v3 module state after the github.com/atterpac/refresh bump to v1.0.0 by regenerating v3/go.sum (and aligning the related indirect dependency versions) so module-aware builds using -mod=readonly succeed.
Changes:
- Update
v3/go.sumto include checksums forgithub.com/atterpac/refresh v1.0.0. - Propagate the indirect dependency update to
github.com/lmittmann/tint v1.1.3in bothv3/go.modandv3/go.sum.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| v3/go.mod | Updates indirect dependency github.com/lmittmann/tint to v1.1.3 to match the tidy/resolved module graph after the refresh v1.0.0 bump. |
| v3/go.sum | Regenerates checksums to include github.com/atterpac/refresh v1.0.0 and the updated indirect tint v1.1.3, fixing -mod=readonly build failures. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Problem
Commit ff529b7 ("Update refresh dependency to version 1.0.0", #5526) bumped
github.com/atterpac/refreshto v1.0.0 inv3/go.modbut leftv3/go.sumcarrying only the v0.8.6 checksums.Any module-aware build that runs with the default
-mod=readonlytherefore fails. The most visible case is the "Build Wails3 CLI" CI step (task install→go install ./cmd/wails3):This breaks the template-build matrix on every open PR (e.g. #5530), not just one branch. The "Run Go Tests v3" jobs stayed green only because
task test:examplesrunsgo mod tidyfirst, which regeneratesgo.sumon disk before the tests compile — masking the bug.Fix
cd v3 && go mod tidy, which:github.com/atterpac/refresh v1.0.0checksums, andgithub.com/lmittmann/tint v1.0.3 → v1.1.3thatrefresh v1.0.0's owngo.modrequires. (A "refresh-only"go.sumpatch would simply fail next on a missingtint v1.1.3checksum.)This is exactly the consistent module state the repo's own
test:examplestarget produces.Verification
go install ./cmd/wails3failure onmaster.go build ./...,go build ./cmd/wails3, andgo install ./cmd/wails3all succeed.v3/go.mod(+1/−1) andv3/go.sum(+4/−4).Once merged, open PRs (including #5530) need a rebase / CI re-run to pick up the corrected
go.sum.Summary by CodeRabbit