@@ -283,10 +283,10 @@ func TestLong_Name_With_Spaces(t *testing.T) {
283283 require .NoErrorf (t , tmpfile .Close (), "unable to close temp file" )
284284 ctx := context .Background ()
285285
286- err = exec .CommandContext (ctx , "go" , "build" , "-o" , tmpfile .Name ()+ ".exe" , tmpfile .Name ()).Run ()
286+ err = exec .CommandContext (ctx , "go" , "build" , "-o" , tmpfile .Name ()+ ".exe" , tmpfile .Name ()).Run () //nolint:gosec // test code
287287 require .NoErrorf (t , err , "unable to build temp file %v" , err )
288288
289- cmd := exec .CommandContext (ctx , tmpfile .Name ()+ ".exe" )
289+ cmd := exec .CommandContext (ctx , tmpfile .Name ()+ ".exe" ) //nolint:gosec // test code
290290
291291 require .NoError (t , cmd .Start ())
292292 time .Sleep (100 * time .Millisecond )
@@ -323,10 +323,10 @@ func TestLong_Name(t *testing.T) {
323323 require .NoErrorf (t , tmpfile .Close (), "unable to close temp file" )
324324 ctx := context .Background ()
325325
326- err = exec .CommandContext (ctx , "go" , "build" , "-o" , tmpfile .Name ()+ ".exe" , tmpfile .Name ()).Run ()
326+ err = exec .CommandContext (ctx , "go" , "build" , "-o" , tmpfile .Name ()+ ".exe" , tmpfile .Name ()).Run () //nolint:gosec // test code
327327 require .NoErrorf (t , err , "unable to build temp file %v" , err )
328328
329- cmd := exec .CommandContext (ctx , tmpfile .Name ()+ ".exe" )
329+ cmd := exec .CommandContext (ctx , tmpfile .Name ()+ ".exe" ) //nolint:gosec // test code
330330
331331 require .NoError (t , cmd .Start ())
332332 time .Sleep (100 * time .Millisecond )
@@ -711,10 +711,10 @@ func TestEnviron(t *testing.T) {
711711 require .NoErrorf (t , tmpfile .Close (), "unable to close temp file" )
712712 ctx := context .Background ()
713713
714- err = exec .CommandContext (ctx , "go" , "build" , "-o" , tmpfile .Name ()+ ".exe" , tmpfile .Name ()).Run ()
714+ err = exec .CommandContext (ctx , "go" , "build" , "-o" , tmpfile .Name ()+ ".exe" , tmpfile .Name ()).Run () //nolint:gosec // test code
715715 require .NoErrorf (t , err , "unable to build temp file %v" , err )
716716
717- cmd := exec .CommandContext (ctx , tmpfile .Name ()+ ".exe" )
717+ cmd := exec .CommandContext (ctx , tmpfile .Name ()+ ".exe" ) //nolint:gosec // test code
718718
719719 cmd .Env = []string {"testkey=envvalue" }
720720
0 commit comments