Skip to content

Commit

Permalink
fixes building kind in codebuild (#2704)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxesn authored Dec 1, 2023
1 parent 1df84f9 commit 8ccda3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/lib/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,12 @@ function build::common::copy_if_source_destination_different() {
function build::common::check_for_qemu() {
local -r platform="$1"

if [ "${CODEBUILD_CI:-false}" = "true" ]; then
# code build is running in a container so we cant rely on checking for the proc file
# since it would be on the host directly
return
fi

local -r normalized_platform="$(echo "${platform}" | sed 's/linux\/arm64/aarch64/g;s/linux\/amd64/x86_64/g')"

if [ "$(uname -s)" = "Linux" ] && [ "$(uname -m)" != "$normalized_platform" ]; then
Expand Down

0 comments on commit 8ccda3b

Please sign in to comment.