-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Segmentation fault when installing asm #1114
Comments
hey, I think the issue is with the asm script trying to use a linux I found a work around for the arm64 architecture, it's not pretty, but it goes like this:
Probably a nicer way to do this, but this lets me run terraform apply from my M1 processor |
Issue could be related to the 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 |
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 hereThe text was updated successfully, but these errors were encountered: