Skip to content

Commit cee4c2d

Browse files
committed
fix: cast rune as string
1 parent 3052aa8 commit cee4c2d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

handleprivaterepo.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"os"
99
"os/exec"
1010
"path"
11-
"strconv"
1211
"strings"
1312

1413
"golang.org/x/mod/modfile"
@@ -129,7 +128,7 @@ func clonePrivateRepo(projectCfg ProjectSpec) goPackageFunc {
129128
return fmt.Errorf(prefix("error: failed matching private repo: %w"), err)
130129
} else if match {
131130
clonePath := path.Join(privateRepoDir, r.Mod.Path)
132-
newModPath := "." + strconv.QuoteRune(os.PathSeparator) + path.Join(PrivateRepoDir, r.Mod.Path)
131+
newModPath := "." + string(os.PathSeparator) + path.Join(PrivateRepoDir, r.Mod.Path)
133132

134133
log.Printf(prefix("found private repo: %s"), r.Mod.Path)
135134

0 commit comments

Comments
 (0)