Skip to content

Commit

Permalink
Use semver for version matching
Browse files Browse the repository at this point in the history
Signed-off-by: David Freilich <dfreilich@vmware.com>
  • Loading branch information
dfreilich committed May 26, 2020
1 parent b1c0798 commit 4111130
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/build/phases.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ func (l *Lifecycle) Build(ctx context.Context, networkMode string, volumes []str
"-platform", platformDir,
}

if l.platformAPIVersion > "0.2" { // lifecycle did not support log level for build until platform api 0.3
platformAPIVersion := semver.MustParse(l.platformAPIVersion)
if semver.MustParse("0.2").LessThan(platformAPIVersion) { // lifecycle did not support log level for build until platform api 0.3
args = l.withLogLevel(args...)
}

Expand Down

0 comments on commit 4111130

Please sign in to comment.