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

v2.2.1 release breaks RPM latest download #273

Open
moshuum opened this issue Nov 14, 2023 · 0 comments · May be fixed by #282
Open

v2.2.1 release breaks RPM latest download #273

moshuum opened this issue Nov 14, 2023 · 0 comments · May be fixed by #282
Labels
bug Something isn't working

Comments

@moshuum
Copy link

moshuum commented Nov 14, 2023

Description

Download script for rpm packages found at https://docs.sigstore.dev/system_config/installation/#with-the-cosign-binary-or-rpmdpkg-package fails because release filename differ from tag name.

LATEST_VERSION=$(curl https://api.github.com/repos/sigstore/cosign/releases/latest | grep tag_name | cut -d : -f2 | tr -d "v\", ")
curl -O -L "https://github.com/sigstore/cosign/releases/latest/download/cosign-${LATEST_VERSION}.x86_64.rpm"
sudo rpm -ivh cosign-${LATEST_VERSION}.x86_64.rpm

The example shown are using tag_name to extract the value for LATEST_VERSION.

At the time of writing, the binary release of the file become cosign-2.2.1-1.x86_64.rpm, with -1, causing the mismatch to the Tag Name.

Version

Latest / v2.2.1

@moshuum moshuum added the bug Something isn't working label Nov 14, 2023
nikhilkalburgi added a commit to nikhilkalburgi/docs that referenced this issue Dec 24, 2023
Resolved the issue that was causing break in downloading the cosign
rpm release file.

Resolves: sigstore#273
nikhilkalburgi added a commit to nikhilkalburgi/docs that referenced this issue Dec 24, 2023
Resolved the issue that was causing break in downloading the cosign
rpm release file.

Resolves: sigstore#273
Signed-off-by: nikhilkalburgi <nikhilkalburgi19@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant