Skip to content

Commit

Permalink
fix: fix e2e test case
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <zongzhe1024@163.com>
  • Loading branch information
zong-zhe committed Jun 4, 2024
1 parent fe4dfe3 commit 688eb8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/opt/opt.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,11 @@ func NewOciOptionsFromRef(refStr string, settings *settings.Settings) (*OciOptio
if err != nil {
return nil, err
}
repo = fmt.Sprintf("%s/%s", repo, pkgName)
if !strings.HasPrefix(pkgName, "/") {
repo = fmt.Sprintf("%s/%s", repo, pkgName)
} else {
repo = fmt.Sprintf("%s%s", repo, pkgName)
}
} else {
reg = ref.Registry
repo = ref.Repository
Expand Down

0 comments on commit 688eb8b

Please sign in to comment.