Skip to content

Commit

Permalink
chore: Update golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Jan 1, 2025
1 parent c4f1693 commit efc7fe9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ env:
FIND_TYPOS_VERSION: 0.0.3 # https://github.com/twpayne/find-typos/tags
GO_VERSION: 1.23.4 # https://go.dev/doc/devel/release
GOFUMPT_VERSION: 0.7.0 # https://github.com/mvdan/gofumpt/releases
GOLANGCI_LINT_VERSION: 1.62.2 # https://github.com/golangci/golangci-lint/releases
GOLANGCI_LINT_VERSION: 1.63.0 # https://github.com/golangci/golangci-lint/releases
GOLINES_VERSION: 0.12.2 # https://github.com/segmentio/golines/releases
GORELEASER_VERSION: 2.5.0 # https://github.com/goreleaser/goreleaser/releases
GOVERSIONINFO_VERSION: 1.4.1 # https://github.com/josephspurrier/goversioninfo/releases
Expand Down
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ linters:
- errchkjson
- errname
- errorlint
- exptostd
- fatcontext
- forbidigo
- forcetypeassert
Expand Down Expand Up @@ -46,6 +47,7 @@ linters:
- mirror
- misspell
- nilerr
- nilnesserr
- noctx
- nolintlint
- nosprintfhostport
Expand Down Expand Up @@ -73,6 +75,7 @@ linters:
- unparam
- unused
- usestdlibvars
- usetesting
- wastedassign
- whitespace
- zerologlint
Expand Down
3 changes: 1 addition & 2 deletions internal/chezmoi/boltpersistentstate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ func TestBoltPersistentStateGeneric(t *testing.T) {
}
}()
testPersistentState(t, func() PersistentState {
tempDir, err := os.MkdirTemp("", "chezmoi-test")
assert.NoError(t, err)
tempDir := t.TempDir()
absPath := NewAbsPath(tempDir).JoinString("chezmoistate.boltdb")
b, err := NewBoltPersistentState(system, absPath, BoltPersistentStateReadWrite)
assert.NoError(t, err)
Expand Down

0 comments on commit efc7fe9

Please sign in to comment.