diff --git a/pkg/client/client_test.go b/pkg/client/client_test.go index d63e270e..d4803b7d 100644 --- a/pkg/client/client_test.go +++ b/pkg/client/client_test.go @@ -50,7 +50,7 @@ func initTestDir(subDir string) string { return testDir } -// TestDownloadGit test download from oci registry. +// TestDownloadOci test download from oci registry. func TestDownloadOci(t *testing.T) { testPath := filepath.Join(getTestDir("download"), "helloworld_0.1.2") err := os.MkdirAll(testPath, 0755) diff --git a/pkg/downloader/downloader.go b/pkg/downloader/downloader.go index 24a17125..3bfb11b8 100644 --- a/pkg/downloader/downloader.go +++ b/pkg/downloader/downloader.go @@ -170,7 +170,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 {