From e496a6f6578cecef3a669ac42c9f4043c221a3b8 Mon Sep 17 00:00:00 2001 From: Asish Kumar Date: Thu, 30 May 2024 15:56:05 +0530 Subject: [PATCH] removed git subdirectory when download from git Downloader Signed-off-by: Asish Kumar --- pkg/downloader/downloader.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/downloader/downloader.go b/pkg/downloader/downloader.go index 24a17125..e0b4a4a5 100644 --- a/pkg/downloader/downloader.go +++ b/pkg/downloader/downloader.go @@ -4,10 +4,8 @@ import ( "errors" "fmt" "io" - "path/filepath" v1 "github.com/opencontainers/image-spec/specs-go/v1" - "kcl-lang.io/kpm/pkg/constants" "kcl-lang.io/kpm/pkg/git" "kcl-lang.io/kpm/pkg/oci" pkg "kcl-lang.io/kpm/pkg/package" @@ -170,7 +168,7 @@ func (d *GitDownloader) Download(opts DownloadOptions) error { git.WithBranch(gitSource.Branch), git.WithTag(gitSource.Tag), git.WithRepoURL(gitSource.Url), - git.WithLocalPath(filepath.Join(opts.LocalPath, constants.GitEntry)), + git.WithLocalPath(opts.LocalPath), ) if err != nil {