From 20e2dc7238e353f0465bb62de620a126d207927b Mon Sep 17 00:00:00 2001 From: mattn Date: Thu, 21 Mar 2024 01:00:35 +0900 Subject: [PATCH] fix: use path/filepath instead of path (#1556) --- internal/experiments/experiments.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/experiments/experiments.go b/internal/experiments/experiments.go index 1db71dca..c185052e 100644 --- a/internal/experiments/experiments.go +++ b/internal/experiments/experiments.go @@ -4,7 +4,7 @@ import ( "fmt" "io" "os" - "path" + "path/filepath" "slices" "strings" "text/tabwriter" @@ -71,11 +71,11 @@ func getEnvFilePath() string { _ = fs.Parse(os.Args[1:]) // If the directory is set, find a .env file in that directory. if dir != "" { - return path.Join(dir, ".env") + return filepath.Join(dir, ".env") } // If the taskfile is set, find a .env file in the directory containing the Taskfile. if taskfile != "" { - return path.Join(path.Dir(taskfile), ".env") + return filepath.Join(filepath.Dir(taskfile), ".env") } // Otherwise just use the current working directory. return ".env"