Skip to content

Commit

Permalink
fixup! feat(version): Determine binary version during initalization
Browse files Browse the repository at this point in the history
  • Loading branch information
tmessi committed Feb 2, 2023
1 parent 5540d39 commit d9d9957
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions version/feature_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ func init() {
Add constraints here following this format after adding a Feature to the Feature iota:
featureMap[FEATURE] = MetadataConstraint{
MetaInfo: []Metadata{OSS, HCP},
Constraints: newConstraints(">= 0.1.0"), // This feature exists at 0.1.0 and above
Constraints: mustNewConstraints(">= 0.1.0"), // This feature exists at 0.1.0 and above
}
*/
featureMap[IncludeStatusInCli] = MetadataConstraint{
MetaInfo: []Metadata{OSS, HCP},
Constraints: newConstraints("< 0.14.0"),
Constraints: mustNewConstraints("< 0.14.0"),
}
}

Expand All @@ -67,7 +67,7 @@ func metadataStringToMetadata(m string) Metadata {
return OSS
}

func newConstraints(v string) gvers.Constraints {
func mustNewConstraints(v string) gvers.Constraints {
c, err := gvers.NewConstraint(v)
if err != nil {
panic(err)
Expand Down

0 comments on commit d9d9957

Please sign in to comment.