@@ -27,7 +27,7 @@ func TestDotfiles(t *testing.T) {
27
27
testRepo := testGitRepo (t , root )
28
28
29
29
// nolint:gosec
30
- err := os .WriteFile (filepath .Join (testRepo , ".bashrc" ), []byte ("wow" ), 0750 )
30
+ err := os .WriteFile (filepath .Join (testRepo , ".bashrc" ), []byte ("wow" ), 0o750 )
31
31
require .NoError (t , err )
32
32
33
33
c := exec .Command ("git" , "add" , ".bashrc" )
@@ -56,7 +56,7 @@ func TestDotfiles(t *testing.T) {
56
56
testRepo := testGitRepo (t , root )
57
57
58
58
// nolint:gosec
59
- err := os .WriteFile (filepath .Join (testRepo , "install.sh" ), []byte ("#!/bin/bash\n echo wow > " + filepath .Join (string (root ), ".bashrc" )), 0750 )
59
+ err := os .WriteFile (filepath .Join (testRepo , "install.sh" ), []byte ("#!/bin/bash\n echo wow > " + filepath .Join (string (root ), ".bashrc" )), 0o750 )
60
60
require .NoError (t , err )
61
61
62
62
c := exec .Command ("git" , "add" , "install.sh" )
@@ -82,12 +82,12 @@ func TestDotfiles(t *testing.T) {
82
82
testRepo := testGitRepo (t , root )
83
83
84
84
// nolint:gosec
85
- err := os .WriteFile (filepath .Join (testRepo , ".bashrc" ), []byte ("wow" ), 0750 )
85
+ err := os .WriteFile (filepath .Join (testRepo , ".bashrc" ), []byte ("wow" ), 0o750 )
86
86
require .NoError (t , err )
87
87
88
88
// add a conflicting file at destination
89
89
// nolint:gosec
90
- err = os .WriteFile (filepath .Join (string (root ), ".bashrc" ), []byte ("backup" ), 0750 )
90
+ err = os .WriteFile (filepath .Join (string (root ), ".bashrc" ), []byte ("backup" ), 0o750 )
91
91
require .NoError (t , err )
92
92
93
93
c := exec .Command ("git" , "add" , ".bashrc" )
@@ -119,7 +119,7 @@ func testGitRepo(t *testing.T, root config.Root) string {
119
119
r , err := cryptorand .String (8 )
120
120
require .NoError (t , err )
121
121
dir := filepath .Join (string (root ), fmt .Sprintf ("test-repo-%s" , r ))
122
- err = os .MkdirAll (dir , 0750 )
122
+ err = os .MkdirAll (dir , 0o750 )
123
123
require .NoError (t , err )
124
124
125
125
c := exec .Command ("git" , "init" )
0 commit comments