set opts.version after getting version from package.json (#39038)

This commit is contained in:
Kevin Minehart 2021-09-09 08:40:08 -05:00 committed by GitHub
parent e3c11d2682
commit 792fa63725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,8 @@ func RunCmd() int {
return logError("Error opening package json", err)
}
opts.version = packageJSON.Version
version, iteration := LinuxPackageVersion(packageJSON.Version, opts.buildID)
if opts.printGenVersion {