Skip to content

CI: Modernize go commands - #740

Merged
swalkinshaw merged 1 commit into
masterfrom
tangrufus-patch-1
Oct 8, 2026
Merged

swalkinshaw merged 1 commit into
masterfrom
tangrufus-patch-1

Conversation

@tangrufus

@tangrufus tangrufus commented Oct 8, 2026 •

Copy link
Copy Markdown
Member
  • Modernize modernize with go fix
  • Use -diff with go mod tidy

Since Go 1.26, the 'go fix' command has included the modernize suite

-- https://pkg.go.dev/golang.org/x/tools@v0.51.0/go/analysis/passes/modernize

The new go mod tidy -diff flag causes the command not to modify the files but instead print the necessary changes as a unified diff. It exits with a non-zero code if updates are needed.

-- https://go.dev/doc/go1.23

- Replace `modernize` with `go fix`
- Use `-diff` with `go mod tidy`
@swalkinshaw
swalkinshaw merged commit 2d62649 into master Oct 8, 2026
9 checks passed
@swalkinshaw
swalkinshaw deleted the tangrufus-patch-1 branch October 8, 2026 01:23
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