From 663f5b764c00064c27dd176863c9e4f2e34b5ba3 Mon Sep 17 00:00:00 2001 From: Danny Ranson Date: Thu, 12 Dec 2024 09:58:20 +0000 Subject: [PATCH] hide symlink file --- cmd/foreach/foreach.go | 2 +- cmd/foreach/foreach_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/foreach/foreach.go b/cmd/foreach/foreach.go index cd9cf6e..f143ffb 100644 --- a/cmd/foreach/foreach.go +++ b/cmd/foreach/foreach.go @@ -48,7 +48,7 @@ var ( failedReposFileName string ) -const previousResultsSymlink = "..turbolift_previous_results" +const previousResultsSymlink = ".turbolift_previous_results" func formatArguments(arguments []string) string { quotedArgs := make([]string, len(arguments)) diff --git a/cmd/foreach/foreach_test.go b/cmd/foreach/foreach_test.go index 78a737b..695fc4d 100644 --- a/cmd/foreach/foreach_test.go +++ b/cmd/foreach/foreach_test.go @@ -267,7 +267,7 @@ func TestItCreatesSymlinksSuccessfully(t *testing.T) { assert.Contains(t, out, "turbolift foreach completed") assert.Contains(t, out, "2 OK, 0 skipped, 1 errored") - resultsDir, err := os.Readlink("..turbolift_previous_results") + resultsDir, err := os.Readlink(".turbolift_previous_results") if err != nil { t.Errorf("Error reading symlink: %s", err) @@ -334,7 +334,7 @@ func setUpSymlink() error { if err != nil { return err } - err = os.Symlink("mock_output", "..turbolift_previous_results") + err = os.Symlink("mock_output", ".turbolift_previous_results") if err != nil { return err }