Skip to content

Commit 39c3fba

Browse files
JAORMXclaude
andcommitted
Fix lint error and tidy go.mod
Handle unchecked error return from flock Unlock in test and promote sirupsen/logrus from indirect to direct dep. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b52b9a1 commit 39c3fba

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ require (
1010
github.com/gofrs/flock v0.13.0
1111
github.com/google/go-containerregistry v0.20.3
1212
github.com/miekg/dns v1.1.72
13+
github.com/sirupsen/logrus v1.9.4
1314
github.com/stretchr/testify v1.11.1
1415
golang.org/x/crypto v0.47.0
1516
golang.org/x/sync v0.19.0
@@ -46,7 +47,6 @@ require (
4647
github.com/pierrec/lz4/v4 v4.1.14 // indirect
4748
github.com/pkg/errors v0.9.1 // indirect
4849
github.com/pmezard/go-difflib v1.0.0 // indirect
49-
github.com/sirupsen/logrus v1.9.4 // indirect
5050
github.com/u-root/uio v0.0.0-20240224005618-d2acac8f3701 // indirect
5151
github.com/vbatts/tar-split v0.11.6 // indirect
5252
go.opentelemetry.io/auto/sdk v1.2.1 // indirect

state/state_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ func TestManager_LoadAndLockWithRetry_Timeout(t *testing.T) {
275275
locked, err := fl.TryLock()
276276
require.NoError(t, err)
277277
require.True(t, locked)
278-
defer fl.Unlock()
278+
defer func() { _ = fl.Unlock() }()
279279

280280
_, err = mgr.LoadAndLockWithRetry(ctx, 500*time.Millisecond)
281281
require.Error(t, err)

0 commit comments

Comments
 (0)