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

jq1.7 latest asset names used in 1.6 release not found (404) #2877

Closed
suzuki-reha opened this issue Sep 7, 2023 · 9 comments
Closed

jq1.7 latest asset names used in 1.6 release not found (404) #2877

suzuki-reha opened this issue Sep 7, 2023 · 9 comments

Comments

@suzuki-reha
Copy link

suzuki-reha commented Sep 7, 2023

Describe the bug
The latest (currently 1.7) jq from the URL "https://github.com/jqlang/jq/releases/latest/download/jq-linux64" does not install. (status:404)
Until yesterday the latest 1.6 was downloaded.

  1. Execute "https://github.com/jqlang/jq/releases/latest/download/jq-linux64
  2. Redirect to "https://github.com/jqlang/jq/releases/download/jq-1.7/jq-linux64" but page returns 404

To Reproduce
When I run the URL "https://github.com/jqlang/jq/releases/latest/download/jq-linux64" in my browser, nothing is downloaded.

Expected behavior
The latest version (currently, 1.7 is the latest) should be downloaded when the URL "https://github.com/jqlang/jq/releases/latest/download/jq-linux64" is executed in a browser.

Environment (please complete the following information):

  • OS and Version: all
  • jq version [1.7]
@nicowilliams
Copy link
Contributor

nicowilliams commented Sep 7, 2023

Describe the bug The latest (currently 1.7) jq from the URL "https://github.com/jqlang/jq/releases/latest/download/jq-linux64" does not install. (status:404) Until yesterday the latest 1.6 was downloaded.

Oh, interesting. I don't know how to make latest work. Any ideas?

This does work, of course: https://github.com/jqlang/jq/releases/download/jq-1.7/jq-linux-amd64

EDIT: Ah, this link works https://github.com/jqlang/jq/releases/latest/download/jq-linux-arm64

The issue is that we didn't keep the asset name jq-linux64. We didn't because we now produce executables for Linux on more ISAs.

@nicowilliams
Copy link
Contributor

nicowilliams commented Sep 7, 2023

We could restore the jq-linux64 name for backwards compatibility with things that expected that name so they could download jq, but we'd have to do a new version release for that.

@nicowilliams
Copy link
Contributor

Can you update your docker files or scripts to use https://github.com/jqlang/jq/releases/latest/download/jq-linux-arm64 ?

@bc-rajesh
Copy link

bc-rajesh commented Sep 7, 2023

Similar issue. We are using the circleci jq orb circleci/[email protected] and using it to install the latest version of jq.
This tries to get the latest version https://github.com/stedolan/jq/releases/download/jq-1.7/jq-linux64 and then redirected to https://github.com/jqlang/jq/releases/download/jq-1.7/jq-linux64 but returns 404.

The circleci JQ orb needs to be updated as well

@butyear
Copy link

butyear commented Sep 7, 2023

I've also encountered an error while using a different library.
(https://github.com/stefanprodan/kube-tools/blob/master/src/install.sh)
Is there any way to keep the previous URL?

@nicowilliams
Copy link
Contributor

nicowilliams commented Sep 7, 2023

I think I'd have to redo the 1.7 release to do what you're asking for, or else do a 1.7.1 release.

I added a jq-linux64 asset that' a copy of the jq-linux-amd64 asset.

@nicowilliams
Copy link
Contributor

I've added

  • jq-linux32 as the same as jq-linux-i386
  • jq-linux64 as the same as jq-linux-amd64
  • jq-osx-amd64 as the same as jq-macox-amd64
  • jq-win32.exe as the same as jq-windows-i386.exe
  • jq-win64.exe as the same as jq-windows-amd64.exe

and I've

  • updated sha256sum.txt accordingly.

I've not yet fixed the GitHub Actions CI workflows to do the same. Maybe that should be a separate issue and for the next release.

@nicowilliams nicowilliams changed the title jq1.7 not downloading jq1.7 "legacy" asset names not found (404) Sep 7, 2023
@nicowilliams nicowilliams changed the title jq1.7 "legacy" asset names not found (404) jq1.7 latest asset names used in 1.6 release not found (404) Sep 7, 2023
@suzuki-reha
Copy link
Author

@nicowilliams
Thank you for your prompt response.

@itchyny
Copy link
Contributor

itchyny commented Sep 7, 2023

I strongly recommend to migrate to the new URLs with explicit architecture in executable names, because we may not fix this in the next 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

5 participants