Skip to content

Commit 2edc6c8

Browse files
committed
Fix lint errors
1 parent 71a2874 commit 2edc6c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/commands/internal/builder_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ func TestMergeReplaceDirectives(t *testing.T) {
7171
require.NoError(t, os.WriteFile(filepath.Join(tmp, "go.mod"), []byte(`
7272
module github.com/golangci/golangci-lint/v2
7373
go 1.24.0
74-
`), 0o644))
75-
require.NoError(t, os.Mkdir(filepath.Join(tmp, "golangci-lint"), 0o755))
74+
`), 0o600))
75+
require.NoError(t, os.Mkdir(filepath.Join(tmp, "golangci-lint"), 0o700))
7676

7777
b := NewBuilder(nil, &Configuration{Plugins: []*Plugin{
7878
{Module: "example.com/plugin", Path: "testdata/plugin"},
@@ -84,7 +84,7 @@ go 1.24.0
8484
err := b.mergeReplaceDirectives(t.Context(), filepath.Join("testdata", "plugin"))
8585
require.NoError(t, err)
8686

87-
cmd := exec.Command("go", "mod", "edit", "-json")
87+
cmd := exec.CommandContext(t.Context(), "go", "mod", "edit", "-json")
8888
cmd.Dir = b.repo
8989
output, err := cmd.CombinedOutput()
9090
require.NoError(t, err)

0 commit comments

Comments
 (0)