We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33f0bac commit e496a6fCopy full SHA for e496a6f
pkg/downloader/downloader.go
@@ -4,10 +4,8 @@ import (
4
"errors"
5
"fmt"
6
"io"
7
- "path/filepath"
8
9
v1 "github.com/opencontainers/image-spec/specs-go/v1"
10
- "kcl-lang.io/kpm/pkg/constants"
11
"kcl-lang.io/kpm/pkg/git"
12
"kcl-lang.io/kpm/pkg/oci"
13
pkg "kcl-lang.io/kpm/pkg/package"
@@ -170,7 +168,7 @@ func (d *GitDownloader) Download(opts DownloadOptions) error {
170
168
git.WithBranch(gitSource.Branch),
171
169
git.WithTag(gitSource.Tag),
172
git.WithRepoURL(gitSource.Url),
173
- git.WithLocalPath(filepath.Join(opts.LocalPath, constants.GitEntry)),
+ git.WithLocalPath(opts.LocalPath),
174
)
175
176
if err != nil {
0 commit comments