Skip to content

Commit

Permalink
fix(publisher): fix splitRepoAndTag function
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed Oct 16, 2024
1 parent be53a14 commit dd02c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publisher/pkg/tiup/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func AnalyzeFromOciArtifactUrl(url string) ([]PublishRequest, error) {

func splitRepoAndTag(url string) (string, string, error) {
splitor := ":"
if !strings.Contains(url, "@sha256:") {
if strings.Contains(url, "@sha256:") {
splitor = "@"
}
parts := strings.SplitN(url, splitor, 2)
Expand Down

0 comments on commit dd02c5a

Please sign in to comment.