Skip to content

Commit

Permalink
fix: cast rune as string
Browse files Browse the repository at this point in the history
  • Loading branch information
jrschumacher committed Sep 4, 2024
1 parent 3052aa8 commit cee4c2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions handleprivaterepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"os"
"os/exec"
"path"
"strconv"
"strings"

"golang.org/x/mod/modfile"
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit cee4c2d

Please sign in to comment.