Skip to content

Commit

Permalink
fix(versioning): ensure that version is not empty (#4173)
Browse files Browse the repository at this point in the history
Co-authored-by: tiloKo <[email protected]>
  • Loading branch information
OliverNocon and tiloKo authored Apr 29, 2024
1 parent b18f857 commit 7d9fc6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/artifactPrepareVersion.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ func runArtifactPrepareVersion(config *artifactPrepareVersionOptions, telemetryD
if err != nil {
log.SetErrorCategory(log.ErrorConfiguration)
return errors.Wrap(err, "failed to retrieve version")
} else if len(version) == 0 {
log.SetErrorCategory(log.ErrorConfiguration)
return fmt.Errorf("version is empty - please check versioning configuration")
}
log.Entry().Infof("Version before automatic versioning: %v", version)

Expand Down

0 comments on commit 7d9fc6a

Please sign in to comment.