Skip to content

fix(v3): regenerate go.sum after refresh v1.0.0 bump (#5526) - #5532

Merged
leaanthony merged 1 commit into
masterfrom
fix/v3-gosum-refresh-1.0.0
Jun 3, 2026
Merged

leaanthony merged 1 commit into
masterfrom
fix/v3-gosum-refresh-1.0.0

Conversation

@leaanthony

@leaanthony leaanthony commented Jun 3, 2026 •

Copy link
Copy Markdown
Member

Problem

Commit ff529b7 ("Update refresh dependency to version 1.0.0", #5526) bumped github.com/atterpac/refresh to v1.0.0 in v3/go.mod but left v3/go.sum carrying only the v0.8.6 checksums.

Any module-aware build that runs with the default -mod=readonly therefore fails. The most visible case is the "Build Wails3 CLI" CI step (task install → go install ./cmd/wails3):

internal/commands/watcher.go:6:2: missing go.sum entry for module providing
package github.com/atterpac/refresh/engine (imported by .../v3/internal/commands)

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:examples runs go mod tidy first, which regenerates go.sum on disk before the tests compile — masking the bug.

Fix

cd v3 && go mod tidy, which:

  • adds the missing github.com/atterpac/refresh v1.0.0 checksums, and
  • propagates the indirect bump github.com/lmittmann/tint v1.0.3 → v1.1.3 that refresh v1.0.0's own go.mod requires. (A "refresh-only" go.sum patch would simply fail next on a missing tint v1.1.3 checksum.)

This is exactly the consistent module state the repo's own test:examples target produces.

Verification

  • Reproduced the go install ./cmd/wails3 failure on master.
  • After the fix: go build ./..., go build ./cmd/wails3, and go install ./cmd/wails3 all succeed.
  • Diff is limited to v3/go.mod (+1/−1) and v3/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

  • Chores
    • Updated indirect dependencies to the latest compatible versions.

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).
Copilot AI review requested due to automatic review settings June 3, 2026 09:57
@coderabbitai

coderabbitai Bot commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: cc0a8171-2984-47cc-a73a-5de0fa7891f4

📥 Commits

Reviewing files that changed from the base of the PR and between aa31c67 and c22bc83.

⛔ Files ignored due to path filters (1)
  • v3/go.sum is excluded by !**/*.sum
📒 Files selected for processing (1)
  • v3/go.mod

Walkthrough

This PR updates the indirect dependency github.com/lmittmann/tint from v1.0.3 to v1.1.3 in the v3 module's go.mod file. No other module entries or Go configuration declarations are affected.

Changes

Dependency Updates

Layer / File(s) Summary
tint version upgrade
v3/go.mod
The indirect dependency github.com/lmittmann/tint is updated from v1.0.3 to v1.1.3.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested reviewers

  • fbbdev

Poem

🐰 A version bump, so small and neat,
From v1.0.3 to v1.1.3's treat,
The tint dependency now shines bright,
No breaking changes in sight! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description is well-structured with clear Problem, Fix, and Verification sections explaining the issue, solution, and testing. However, it does not follow the template's required structure (e.g., missing Type of change checkboxes, How Has This Been Tested section, and Checklist). Consider using the provided template structure with Type of change selection and test configuration details for consistency with repository standards.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: regenerating go.sum after the refresh v1.0.0 bump, and references the related issue (#5526).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/v3-gosum-refresh-1.0.0

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@leaanthony
leaanthony merged commit 37ec248 into master Jun 3, 2026
14 checks passed
@leaanthony
leaanthony deleted the fix/v3-gosum-refresh-1.0.0 branch June 3, 2026 09:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.sum to include checksums for github.com/atterpac/refresh v1.0.0.
  • Propagate the indirect dependency update to github.com/lmittmann/tint v1.1.3 in both v3/go.mod and v3/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.

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