Skip to content

Commit 051a361

Browse files
committed
lint
1 parent 2769e0a commit 051a361

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/dotfiles_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import (
66
"path/filepath"
77
"testing"
88

9-
"github.com/coder/coder/cli/clitest"
109
"github.com/stretchr/testify/assert"
10+
11+
"github.com/coder/coder/cli/clitest"
1112
)
1213

1314
func TestDotfiles(t *testing.T) {
@@ -27,6 +28,7 @@ func TestDotfiles(t *testing.T) {
2728
c.Dir = testRepo
2829
err = c.Run()
2930
assert.NoError(t, err)
31+
// nolint:gosec
3032
err = os.WriteFile(filepath.Join(testRepo, ".bashrc"), []byte("wow"), 0750)
3133
assert.NoError(t, err)
3234
c = exec.Command("git", "add", ".bashrc")
@@ -54,6 +56,7 @@ func TestDotfiles(t *testing.T) {
5456
c.Dir = testRepo
5557
err = c.Run()
5658
assert.NoError(t, err)
59+
// nolint:gosec
5760
err = os.WriteFile(filepath.Join(testRepo, "install.sh"), []byte("#!/bin/bash\necho wow > "+filepath.Join(string(root), ".bashrc")), 0750)
5861
assert.NoError(t, err)
5962
c = exec.Command("git", "add", "install.sh")

0 commit comments

Comments
 (0)