File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ clean:
240240#
241241# Example:
242242# make release
243- official-release : build-rpms build-cross
243+ official-release : build-cross build-rpms
244244 hack/build-images.sh
245245.PHONY : official-release
246246
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ os::build::internal::build_binaries() {
240240 fi
241241
242242 if [[ " $platform " == " windows/amd64" ]]; then
243- rm ${OS_ROOT} /cmd/oc/oc.syso
243+ rm -f ${OS_ROOT} /cmd/oc/oc.syso
244244 fi
245245
246246 for test in " ${tests[@]: +${tests[@]} } " ; do
@@ -261,6 +261,10 @@ readonly -f os::build::build_binaries
261261# Generates the .syso file used to add compile-time VERSIONINFO metadata to the
262262# Windows binary.
263263function os::build::generate_windows_versioninfo() {
264+ if ! os::util::find::system_binary " goversioninfo" > /dev/null 2>&1 ; then
265+ os::log::warning " No system binary 'goversioninfo' found, skipping version info for Windows builds"
266+ return 0
267+ fi
264268 os::build::version::get_vars
265269 local major=" ${OS_GIT_MAJOR} "
266270 local minor=" ${OS_GIT_MINOR% +} "
Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ elif [[ "$( git rev-parse "${tag}" )" != "$( git rev-parse HEAD )" ]]; then
1515fi
1616commit=" $( git rev-parse ${tag} ) "
1717
18- # Ensure that the build is using the latest release image
19- docker pull " ${OS_BUILD_ENV_IMAGE} "
18+ # Ensure that the build is using the latest release image and base content
19+ if [[ -z " ${OS_RELEASE_STALE} " ]]; then
20+ docker pull " ${OS_BUILD_ENV_IMAGE} "
21+ hack/build-base-images.sh
22+ fi
2023
21- hack/build-base-images.sh
2224hack/env OS_GIT_COMMIT=" ${commit} " make official-release
2325OS_PUSH_ALWAYS=1 OS_PUSH_TAG=" ${tag} " OS_TAG=" " OS_PUSH_LOCAL=" 1" hack/push-release.sh
2426
You can’t perform that action at this time.
0 commit comments