From 21ae1f5b2b87e833238142f69201057dec7921e6 Mon Sep 17 00:00:00 2001 From: yxxhero Date: Mon, 12 Feb 2024 09:06:11 +0800 Subject: [PATCH] fix issues Signed-off-by: yxxhero --- pkg/remote/remote.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/remote/remote.go b/pkg/remote/remote.go index cddd2bd2..23167b0a 100644 --- a/pkg/remote/remote.go +++ b/pkg/remote/remote.go @@ -129,7 +129,8 @@ func Parse(goGetterSrc string) (*Source, error) { if len(pathComponents) != 2 { if strings.HasSuffix(u.Path, ".git") { - pathComponents = []string{u.Path, ""} + dir := u.Path[1:] + pathComponents = []string{dir, ""} } else { dir := filepath.Dir(u.Path) if len(dir) > 0 {