Skip to content

Conversation

@iamjoemccormick
Copy link
Member

@iamjoemccormick iamjoemccormick commented Oct 31, 2025

What does this PR do / why do we need it?

Required for all PRs.

This PR was originally opened to improve a migration error and fix up some low priority static checks flagged in the vicinity.

After pushing those changes I realized there were new standard library vulnerabilities so I took the opportunity to upgrade to Go 1.25.3 and also migrate to the new tools directive. Using the tools directive ensures all Go tools (e.g. staticcheck, go-licenses, govulncheck) are built with the same toolchain and versions defined by the module, rather than whatever binaries happen to exist in GOPATH/bin. This avoids confusing errors like that can occur after upgrading Go or switching environments, and makes tool execution fully reproducible in CI.

Related Issue(s)

Required when applicable.

Where should the reviewer(s) start reviewing this?

Only required for larger PRs when this may not be immediately obvious.

Are there any specific topics we should discuss before merging?

Not required.

What are the next steps after this PR?

Not required.

Checklist before merging:

Required for all PRs.

When creating a PR these are items to keep in mind that cannot be checked by GitHub actions:

  • Documentation:
    • Does developer documentation (code comments, readme, etc.) need to be added or updated?
    • Does the user documentation need to be expanded or updated for this change?
  • Testing:
    • Does this functionality require changing or adding new unit tests?
    • Does this functionality require changing or adding new integration tests?
  • Git Hygiene:

For more details refer to the Go coding standards and the pull request process.

* Clarify migration cannot reuse targets already assigned to the entry.
* Address static checks QF1003, ST1000, ST1003, ST1020, and ST1021 in the ctl/entry package.
* Remove unused context parameter.
@iamjoemccormick iamjoemccormick self-assigned this Oct 31, 2025
@iamjoemccormick iamjoemccormick requested a review from a team as a code owner October 31, 2025 18:37
@iamjoemccormick iamjoemccormick added refactoring Issues related to refactoring existing code for maintainability or readablity. ux Issues aimed at improving the ease of use, efficiency, and overall user experience. labels Oct 31, 2025
The upgrade from 1.23 was prompted by new standard library vulnerabilities in that version and the
desire to adopt the new tools directive introduced in Go 1.24.

The tools directive ensures that all Go-based tools (e.g. staticcheck, go-licenses, govulncheck) are
built with the same toolchain and versions defined by the module, rather than with whichever
binaries happen to exist in GOPATH/bin. This prevents confusing errors that can occur after
upgrading Go or switching environments and makes tool execution fully reproducible in CI.

Also fixes a new go vet failure (non-constant format string in fmt.Errorf).
@iamjoemccormick iamjoemccormick changed the title refactor(ctl): improve migrate error and address entry pkg static checks Upgrade to Go 1.25, adopt new tools directive, address feedback on migration error, fix entry pkg static checks Oct 31, 2025
@iamjoemccormick iamjoemccormick changed the title Upgrade to Go 1.25, adopt new tools directive, address feedback on migration error, fix entry pkg static checks chore/refactor: upgrade to Go 1.25, adopt new tools directive, address feedback on migration error, fix entry pkg static checks Oct 31, 2025
@iamjoemccormick iamjoemccormick added ci/cd Additions or improvements to CI/CD workflows. testing This issue improves tests or test tools. golang Issues that affect or are affected by changes in Golang. labels Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd Additions or improvements to CI/CD workflows. golang Issues that affect or are affected by changes in Golang. refactoring Issues related to refactoring existing code for maintainability or readablity. testing This issue improves tests or test tools. ux Issues aimed at improving the ease of use, efficiency, and overall user experience.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants