Closed gottfrois closed 2 years ago
hey, I think the issue is with the asm script trying to use a linux kpt
binary.
I found a work around for the arm64 architecture, it's not pretty, but it goes like this:
kpt
version 0.39.x for Darwin.env /usr/bin/arch -x86_64 /bin/zsh --login
Probably a nicer way to do this, but this lets me run terraform apply from my M1 processor
Issue could be related to the install_asm_1.9
file which includes this function:
download_kpt() {
local OS
case "$(uname)" in
Linux ) OS="linux_amd64";;
Darwin) OS="darwin_arm64";;
* ) fatal "$(uname) is not a supported OS.";;
esac
local KPT_TGZ
KPT_TGZ="https://github.com/GoogleContainerTools/kpt/releases/download/v0.39.3/kpt_${OS}-0.39.3.tar.gz"
info "Downloading kpt.."
curl -L "${KPT_TGZ}" | tar xz
AKPT="$(apath -f kpt)"
}
if you're not running an M1 mac, then it will download and run the wrong version and fail:
❯ ./kpt
zsh: bad CPU type in executable: ./kpt
i've given up on using terraform to install the up-to-date version of ASM. I'm switching to the manual process using the asmcli
tool until this is completed.
Running into this same problem. Hopefully the module rewrite fixes this
Closing this since the new module will hopefully not run into these issues since it doesn't use kpt at all.
TL;DR
I got a segmentation fault error when running
terraform apply
to install asm.Expected behavior
I expected the command to work successfully.
Observed behavior
I got a segmentation fault error:
Terraform Configuration
Terraform Version
Running MacOS Catalina version 10.15.7
Additional information
Logs from running the
terraform apply
command are available here