benthosdev / benthos-asdf

Benthos asdf plugin
https://github.com/asdf-vm/asdf
MIT License
2 stars 4 forks source link

asdf list-all benthos produces an error #4

Open peick opened 3 months ago

peick commented 3 months ago

Calling asdf list-all benthos produces the error:

❯ asdf list-all benthos     
Plugin benthos's list-all callback script failed with output:
jq: error (at <stdin>:5): Cannot index string with string "name"

How to reproduce

Follow the README with an asdf installation where the benthos plugin is not installed yet:

❯ asdf plugin add benthos
❯ asdf plugin update benthos
❯ asdf list-all benthos
peick commented 3 months ago

Looks like a -L is missing in the curl command.

After adding them I get the desired output:

❯ asdf list-all benthos                  
4.11.0
4.11.0-rc1
4.12.0
4.12.1
4.13.0
4.14.0
4.15.0
4.16.0
4.17.0
4.18.0
4.19.0
4.20.0
4.21.0
4.22.0
4.23.0
4.24.0
4.25.0
4.25.0-rc1
4.25.0-rc2
4.25.1
4.26.0
4.27.0
4.28.0
4.29.0
4.30.0
4.30.1
4.31.0
4.32.1
4.33.0
4.33.0-rc4
mihaitodor commented 3 months ago

Hey @peick, thank you for reporting this issue. The project went through a transition as mentioned on the Redpanda blog and the ASDF plugin hasn't been updated. I took a quick stab at making it work, so please feel free to try the latest commit (bee003d).