Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes building kind in codebuild #2704

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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