mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 03:42:09 +00:00
osbuilder: use newest golang
Instead of the oldest one. Fixes: #345 Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
parent
fe5b54b38d
commit
ebfbca031b
@ -381,7 +381,7 @@ detect_go_version()
|
||||
fi
|
||||
|
||||
info "Get Go version from ${kata_versions_file}"
|
||||
GO_VERSION="$(cat "${kata_versions_file}" | $yq r - "languages.golang.version")"
|
||||
GO_VERSION="$(cat "${kata_versions_file}" | $yq r - "languages.golang.meta.newest-version")"
|
||||
|
||||
[ "$?" == "0" ] && [ "$GO_VERSION" != "null" ]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user