-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Dockerfile: update golangci-lint to v1.64.5, replace deprecated tenv linter in favor of usetesting
#5835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
adds go1.24 support full diff: golangci/golangci-lint@v1.63.4...v1.64.5 changelog: https://golangci-lint.run/product/changelog/#v1645 Signed-off-by: Sebastiaan van Stijn <[email protected]>
cli/command/trust/signer_add_test.go:71:18: os.CreateTemp("", ...) could be replaced by os.CreateTemp(t.TempDir(), ...) in TestSignerAddCommandNoTargetsKey (usetesting)
tmpfile, err := os.CreateTemp("", "pemfile")
^
cli/command/trust/signer_add_test.go:133:18: os.CreateTemp("", ...) could be replaced by os.CreateTemp(t.TempDir(), ...) in TestIngestPublicKeys (usetesting)
tmpfile, err := os.CreateTemp("", "pemfile")
^
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Also fix some unhandled errors
cli/debug/debug_test.go:12:3: os.Setenv() could be replaced by t.Setenv() in TestEnable (usetesting)
os.Setenv("DEBUG", "")
^
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5835 +/- ##
=======================================
Coverage 59.18% 59.18%
=======================================
Files 352 352
Lines 29548 29548
=======================================
Hits 17487 17487
Misses 11080 11080
Partials 981 981 |
|
Ah, derp, I thought I checked locally; |
|
Ah, I see what's happening; ISTR I had a patch to make sure it picks the right version of Go; let me check |
|
Interesting; so that's already there in this repo, so why does it come with suggestions for go1.24? Lines 43 to 47 in 88a019a
|
WARN The linter 'tenv' is deprecated (since v1.64.0) due to: Duplicate feature another linter. Replaced by usetesting. Signed-off-by: Sebastiaan van Stijn <[email protected]>
cd0e85e to
a8affef
Compare
|
Looks like flaky test; |
Dockerfile: update golangci-lint to v1.64.5
adds go1.24 support
full diff: golangci/golangci-lint@v1.63.4...v1.64.5
changelog: https://golangci-lint.run/product/changelog/#v1645
cli/command/trust: fix "usetesting" linting errors
cli/command/trust: fix "usetesting" linting errors
Also fix some unhandled errors
golangci-lint: replace deprecated
tenvlinter in favor ofusetesting- Human readable description for the release notes
- A picture of a cute animal (not mandatory but encouraged)