Skip to content

Commit

Permalink
UPSTREAM: <carry>: Force using host go always and use host libriaries
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindhp authored and openshift-cherrypick-robot committed Sep 12, 2023
1 parent 7aa7ea9 commit 1c28fdd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hack/lib/golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,9 @@ kube::golang::is_statically_linked_library() {
if [[ -n "${KUBE_CGO_OVERRIDES_LIST:+x}" ]]; then
for e in "${KUBE_CGO_OVERRIDES_LIST[@]}"; do [[ "${1}" == *"/${e}" ]] && return 1; done;
fi
for e in "${KUBE_STATIC_LIBRARIES[@]}"; do [[ "${1}" == *"/${e}" ]] && return 0; done;
if [[ -n "${KUBE_STATIC_LIBRARIES:+x}" ]]; then
for e in "${KUBE_STATIC_LIBRARIES[@]}"; do [[ "${1}" == *"/${e}" ]] && return 0; done;
fi
if [[ -n "${KUBE_STATIC_OVERRIDES_LIST:+x}" ]]; then
for e in "${KUBE_STATIC_OVERRIDES_LIST[@]}"; do [[ "${1}" == *"/${e}" ]] && return 0; done;
fi
Expand Down

0 comments on commit 1c28fdd

Please sign in to comment.