From c2e015b8f175b595eccba094a2890a876a1f5fdf Mon Sep 17 00:00:00 2001 From: Amit Pandey <95427130+d4v1d03@users.noreply.github.com> Date: Fri, 31 May 2024 03:13:30 +0530 Subject: [PATCH] "test fixes" --- pkg/client/client_test.go | 2 +- pkg/downloader/downloader.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {