Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
d2285 committed Feb 2, 2025
1 parent a5983b4 commit b5fe208
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/mirror/cmd/pull/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ func parseAndValidateVersionFlags() error {
if specificReleaseString != "" {
SpecificRelease, err = semver.NewVersion(specificReleaseString)
if err != nil {
prTag := fmt.Sprintf("0.0.0-%s", specificReleaseString)
SpecificRelease, err = semver.NewVersion(prTag)
if !strings.HasPrefix(specificReleaseString, "pr") {
return fmt.Errorf("Parse required deckhouse version: %w", err)
if strings.HasPrefix(specificReleaseString, "pr") {
prTag := fmt.Sprintf("0.0.0-%s", specificReleaseString)
SpecificRelease, err = semver.NewVersion(prTag)
return nil
}
return nil
return fmt.Errorf("Parse required deckhouse version: %w", err)
}
}
return nil
Expand Down

0 comments on commit b5fe208

Please sign in to comment.