diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 19:45:17 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 19:45:17 +0800 |
commit | 54a19febc0c7c49caa014254cabab571abad60ab (patch) | |
tree | a0b5ffe5aaaff956d5d41b09ca1d2127f771d17a /ssh_utils.go | |
parent | git2c: Fix regression in potential integer overflow (diff) | |
download | forge-54a19febc0c7c49caa014254cabab571abad60ab.tar.gz forge-54a19febc0c7c49caa014254cabab571abad60ab.tar.zst forge-54a19febc0c7c49caa014254cabab571abad60ab.zip |
misc: Move url.go into the misc package
Diffstat (limited to 'ssh_utils.go')
-rw-r--r-- | ssh_utils.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ssh_utils.go b/ssh_utils.go index 476fc31..c906ab3 100644 --- a/ssh_utils.go +++ b/ssh_utils.go @@ -11,6 +11,7 @@ import ( "net/url" "go.lindenii.runxiyu.org/forge/ansiec" + "go.lindenii.runxiyu.org/forge/misc" ) var errIllegalSSHRepoPath = errors.New("illegal SSH repo path") @@ -22,7 +23,7 @@ func getRepoInfo2(ctx context.Context, sshPath, sshPubkey string) (groupPath []s var sepIndex int var moduleType, moduleName string - segments, err = pathToSegments(sshPath) + segments, err = misc.PathToSegments(sshPath) if err != nil { return } |