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

Error installing jq with ASDF #10

Open
leandromoreirati opened this issue Apr 21, 2021 · 0 comments
Open

Error installing jq with ASDF #10

leandromoreirati opened this issue Apr 21, 2021 · 0 comments

Comments

@leandromoreirati
Copy link

Hi, I hope you are all well!

When trying to use the jq plugin in ASDF I was getting the following error message:

➜ linux asdf install jq jq-1.6
Downloading from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux-amd64
  % Total% Received% Xferd Average Speed ​​Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 -: -: - -: -: - -: -: - 0
curl: (22) The requested URL returned error: 404
Error: jq version jq-1.6 not found

By doing the troubleshooting in the installation script **~ /.asdf /plugins/jq/bin/install**, I could identify that he was trying to download the binary following the convention:

local -r download_url="${DOWNLOAD_BASE_URL}/${install_version}/${BINARY_NAME}-$(platform)

The name of the returned artifact, would be: jq-linux-amd64

But on github the name of the artifact was changed, to jq-linux64, according to the link below:

https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64

So, as a contour action, I changed the variables:

readonly BINARY_NAME="jq"

for:

readonly BINARY_NAME="jq-linux64"

And

local -r download_url="${DOWNLOAD_BASE_URL}/${install_version}/${BINARY_NAME}-$(platform)"

For:

local -r download_url="${DOWNLOAD_BASE_URL}/${install_version}/${BINARY_NAME}"

When executing the installation it was successful:

➜ linux asdf install jq jq-1.6
Downloading from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
  % Total% Received% Xferd Average Speed ​​Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 614 100 614 0 0 1331 0 -: -: - -: -: - -: -: - 1331
100 3861k 100 3861k 0 0 2246k 0 0:00:01 0:00:01 -: -: - 3925k
Installing binary

You can kindly evaluate this solution for an eventual new release.

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

No branches or pull requests

1 participant