diff --git a/pkg/recipes/driver/gitconfig_test.go b/pkg/recipes/driver/gitconfig_test.go index b5389adea1..657753ddb9 100644 --- a/pkg/recipes/driver/gitconfig_test.go +++ b/pkg/recipes/driver/gitconfig_test.go @@ -128,12 +128,13 @@ func withGlobalGitConfigFile(tmpdir string, content string) func() { tmpGitConfigFile := filepath.Join(tmpdir, ".gitconfig") - os.WriteFile( + err:=os.WriteFile( tmpGitConfigFile, []byte(content), 0777, ) + require.NoError(t,err) prevGitConfigEnv := os.Getenv("HOME") os.Setenv("HOME", tmpdir)