From cee4c2db451cb30b593769a90a8324fa614bfc22 Mon Sep 17 00:00:00 2001 From: Ryan Schumacher Date: Tue, 3 Sep 2024 21:53:04 -0500 Subject: [PATCH] fix: cast rune as string --- handleprivaterepo.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/handleprivaterepo.go b/handleprivaterepo.go index 70b8da4..f104732 100644 --- a/handleprivaterepo.go +++ b/handleprivaterepo.go @@ -8,7 +8,6 @@ import ( "os" "os/exec" "path" - "strconv" "strings" "golang.org/x/mod/modfile" @@ -129,7 +128,7 @@ func clonePrivateRepo(projectCfg ProjectSpec) goPackageFunc { return fmt.Errorf(prefix("error: failed matching private repo: %w"), err) } else if match { clonePath := path.Join(privateRepoDir, r.Mod.Path) - newModPath := "." + strconv.QuoteRune(os.PathSeparator) + path.Join(PrivateRepoDir, r.Mod.Path) + newModPath := "." + string(os.PathSeparator) + path.Join(PrivateRepoDir, r.Mod.Path) log.Printf(prefix("found private repo: %s"), r.Mod.Path)