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

Missing Apple M1 support when installing the required tooling #241

Closed
mablanco opened this issue Nov 8, 2023 · 6 comments · Fixed by #242
Closed

Missing Apple M1 support when installing the required tooling #241

mablanco opened this issue Nov 8, 2023 · 6 comments · Fixed by #242
Assignees

Comments

@mablanco
Copy link
Contributor

mablanco commented Nov 8, 2023

When running the make asdf_install command to install the required tooling in an Apple M1-based laptop you eventually get the meesage Sadly, there are no official releases for your architecture twice, indicating that there are tools that are not being installed.

This is the context log of those messages:

Creating bin directory
Cleaning previous binaries
Copying binary
* Downloading initium release 0.5.0...
initium 0.5.0 installation was successful!
Sadly, there are no official releases for your architecture
Sadly, there are no official releases for your architecture
Downloading kind from https://github.com/kubernetes-sigs/kind/releases/download/v0.17.0/kind-darwin-amd64
Downloading kubectl from https://dl.k8s.io/release/v1.27.4/bin/darwin/arm64/kubectl
@mablanco mablanco self-assigned this Nov 8, 2023
@mablanco
Copy link
Contributor Author

mablanco commented Nov 8, 2023

It seems that the message belongs to asdf itself. This allows to narrow the investigation to asdf plugins.

@mablanco
Copy link
Contributor Author

mablanco commented Nov 8, 2023

I've uninstalled all asdf plugins and run make asdf_install, getting again the error message twice. According to the context, it seems to be related to the plugins between initium and helm ones. Although all the plugins are installed successfully, the tool installation step is the one failing for two specific plugins.

@mablanco
Copy link
Contributor Author

mablanco commented Nov 8, 2023

After sorting the list of tools in the .tool-versions files, the only one between initium and helm is jq. After removing it from the file, the make asdf_install commands works without error messages.

@mablanco
Copy link
Contributor Author

mablanco commented Nov 8, 2023

Further investigation has led me to discover that the asdf jq plugin is unable to download arm64 versions even though they exist (you just have to use brew install jq to check this). In fact, if I add jq back to the tools list and previously install jq by other means, the make asdf_install process detects it and does not throw any error messages.

@mablanco
Copy link
Contributor Author

mablanco commented Nov 8, 2023

Confirmed: the problem is in the jq plugin itself as it doesn't consider arm64 as a valid architecture, even though the corresponding binaries are available (https://api.github.com/repos/jqlang/jq/releases). See https://github.com/AZMCode/asdf-jq/blob/9c7fc4e6874e8f2aa22f592161c04b303c9bde81/bin/download#L30

@mablanco
Copy link
Contributor Author

mablanco commented Nov 8, 2023

We should bump jq to version 1.7 anyway, as arm64 support was added to this version: jqlang/jq#2386

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant