diff --git a/cli/config/config_test.go b/cli/config/config_test.go index dc46604f11..639829555c 100644 --- a/cli/config/config_test.go +++ b/cli/config/config_test.go @@ -586,6 +586,7 @@ func TestConfigPath(t *testing.T) { expectedErr: fmt.Sprintf("is outside of root config directory %q", "dummy"), }, } { + tc := tc t.Run(tc.name, func(t *testing.T) { SetDir(tc.dir) f, err := Path(tc.path...)