Describe the bug
Using plugin-test to test the asdf-jq plugin yields a positive result regardless of actual installation status
To Reproduce
Tell us what actions you performed before the issue occurred
Steps to reproduce the behavior:
In a linux box with asdf:
asdf plugin-test jq https://github.com/focused-labs/asdf-jq.git
Expected behavior
Test returns failure to install jq in linux. See this.
Actual behavior
console prints:
jq is already installed
Causing asdf-jq's CI to return a false positive.
OS: Linux
asdf version: v0.7.8-4a3e3d6
asdf plugins affected (if relevant): asdf-jq
asdf plugins installed: none
observed the same today
asdf latest jq seems to be returning an empty string, which is causing the issue.
This particular issue should be fixed by #772 but I am not sure if asdf latest jq fails because of an issue on asdf side or on asdf-jq side so please open a new issue if it seems to be on the asdf side.
@danhper would you please ping me once #772 is then merged and part of a release? I could test it then.
@RafalSkolasinski Once merged to master you can use asdf update --head to get the latest commit on master
@jthegedus Not sure where to actually open another issue if required - I only commented as I spotted the same issue when playing around so you guys have information the issue happens for other user too.
Anyway, after doing assdf update --head as you suggested there still seem to be problem with jq:
rskolasinski@machine42:~$ asdf latest jq
rskolasinski@machine42:~$ asdf install jq latest
jq is already installed
rskolasinski@machine42:~$ asdf list jq
No versions installed
rskolasinski@machine42:~$
asdf latest searches for versions that start by a number. All versions return by jq start by jq-, hence latest returns nothing. I would rather open an issue on the jq plugin side of things.
Already fixed in my PR. Thanks for the insight
Most helpful comment
asdf latestsearches for versions that start by a number. All versions return byjqstart byjq-, hencelatestreturns nothing. I would rather open an issue on the jq plugin side of things.