Skip to content

[BUG] Tag without release assets breaks asdf #1077

@netanel-innovid

Description

@netanel-innovid

As of now, when the latest tag in this repo is 0.8.2, but there are no 0.8.2 release assets, attempting to install the latest version of kube-linter with asdf (asdf install kube-linter latest) fails.
This is because it queries the repo with git ls-remote --tags --refs and tries to download the assets from the last tag in the list.

Here is the asdf plugin logic:
https://github.com/the-cashman/asdf-kube-linter/blob/main/lib/utils.bash#L88

$ git ls-remote --tags --refs https://github.com/stackrox/kube-linter
51143ce93e291a4929390b9e32c520b44ead3a0b	refs/tags/0.0.1
3dd7446e57809ef0ac55169c19a5da0d5302ced6	refs/tags/0.0.2
e6966fcb1a5f5ff148ecff0b0ad00a0c821db187	refs/tags/0.0.3
5e2425e2e1442d1563bad18051c39917c03fa59e	refs/tags/0.0.4
26a483c02d5981fc1f6a249abf8b86c77307080c	refs/tags/0.1.0
522267baab6b5c71f15d27d1d0cad3fcfdaf1c03	refs/tags/0.1.1
a6df7881ca012d5ea4d88e2e8a73cbe4c382fc13	refs/tags/0.1.2
55597dc998f499fdf3ba7d0e58c501365ea66df2	refs/tags/0.1.3
12db88411cafedbe9d6870d57a45c0927d27a760	refs/tags/0.1.4
0177d11f9452272c214309cda9ba3aaaa64628e8	refs/tags/0.1.5
a64df58c92e9dcab418e2cc9f1e796eae70b97fa	refs/tags/0.1.6
a8478eef702851802631c3dfbcb1aae4126d1e61	refs/tags/0.2.0
c53952b8e3bde2d3edfc677ccc05a89298a414d8	refs/tags/0.2.1
2d8dff014dda8cd6a7ea10bf665ec421c9350b5c	refs/tags/0.2.2
e01d3c43c9bfbd8fb77f02417cb484c1c1b212ea	refs/tags/0.2.3
c12af3736628d22ea6b84a1876ac4ca01174c57a	refs/tags/0.2.4
15bff8c50e5609a3c76d2eba4b471448afbcb0b1	refs/tags/0.2.5
c5bfb22abad311b04065f321924bbffd4ad1353e	refs/tags/0.2.6
3ff608d2ca5876df4cde9c0bbb2f8ae86038f210	refs/tags/0.3.0
c37b7551f629d71e45429a2f3c6d11eb64ad0597	refs/tags/0.4.0
5b90391fdf8a631c6b9d9608a94b15737700ac09	refs/tags/0.5.0
75bff8264aaf2d7ac09a4ffa53cc65cbe0924873	refs/tags/0.5.1
7de27c2a398042bfa5cf69260a3f9464790a30c1	refs/tags/0.6.0
c37b7551f629d71e45429a2f3c6d11eb64ad0597	refs/tags/v0.4.0
c6177366a31c05b755ad9adbedd0c6fb54b509ba	refs/tags/v0.6.1
191de10fd54d6c3f744b740c29fb7943602d85bc	refs/tags/v0.6.2
191de10fd54d6c3f744b740c29fb7943602d85bc	refs/tags/v0.6.3
500f656a3cfac525291a76bdbb3b124b896d6271	refs/tags/v0.6.4
3eb2513304b4088331818c23eb900f8d5367bb0c	refs/tags/v0.6.5
f80db49f2773b43eec9cde43afec5e3b2cfeab28	refs/tags/v0.6.6
c260cc190c267ce27f55b35cc92ba38f26c3825e	refs/tags/v0.6.7
b1fdbd6d41b9d47e2f73914d1f29aba08eb4b9a2	refs/tags/v0.6.8
8d689190b7dcd63a8bbb50d05e1739273dbc1e9a	refs/tags/v0.7.0
00ad4327e3ad9e86f6956feca92917be049bcb9f	refs/tags/v0.7.1
99380d7479fe568b0e53506e1819eb96535fcb6d	refs/tags/v0.7.2
c87de4e48122908e5730a48f060dbc64656a4e8c	refs/tags/v0.7.3
c17833d87f7fe421b1634b6368a291edab655c60	refs/tags/v0.7.4
3cb8e9fbed423e20c88cab27ac24e70a274432cd	refs/tags/v0.7.5
21eedca3168839f599ad70dbd9340f354ff521e1	refs/tags/v0.7.6
d796e79b2d7da4351364885ed58fb98e8503807e	refs/tags/v0.8.0
1aa393a9c751f6fcfc7f3c0633a601590a326741	refs/tags/v0.8.1
f54f7271ae03eeef307b26c5749cca5282d9038c	refs/tags/v0.8.2

$ asdf latest kube-linter
0.8.2

$ asdf install kube-linter latest
curl: (56) The requested URL returned error: 404
curl: (56) The requested URL returned error: 404
curl: (56) The requested URL returned error: 404
curl: (56) The requested URL returned error: 404
error installing version: failed to run download callback: exit status 1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions