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

bug: list-all script is failing with empty error output #90

Open
sbocinec opened this issue Mar 14, 2024 · 1 comment · May be fixed by #91
Open

bug: list-all script is failing with empty error output #90

sbocinec opened this issue Mar 14, 2024 · 1 comment · May be fixed by #91
Labels
bug Something isn't working

Comments

@sbocinec
Copy link
Contributor

Describe the bug

Listing gcloud versions with the current asdf version fails at the moment:

$ asdf list-all gcloud
`Plugin gcloud's list-all callback script failed with output:


$

This is caused as there are no linux- versions returned in some of the pages (as a result of the output pagination) as you can see after you run the list-all script with verbose output using bash -x .asdf/plugins/gcloud/bin/list-all:
image

In this case, both grep commands used to fill the additions variable exits with 1 as there is no match.

Steps to reproduce

stano@sob ~ $ asdf plugin-add gcloud
updating plugin repository...HEAD is now at 8aa2e59 feat: add shorebird plugin (#949)
✅  All dependencies found on system!

stano@sob ~ $ asdf list gcloud
  No versions installed

stano@sob ~ $ asdf list-all gcloud
`Plugin gcloud's list-all callback script failed with output:

asdf version

v0.14.0-ccdd47d

asdf-gcloud version

current HEAD

gcloud version

this is not relevant here

Additional Information

No response

@sbocinec sbocinec added the bug Something isn't working label Mar 14, 2024
sbocinec added a commit to sbocinec/asdf-gcloud that referenced this issue Mar 14, 2024
@sbocinec sbocinec linked a pull request Mar 14, 2024 that will close this issue
3 tasks
@sbocinec
Copy link
Contributor Author

I have prepared a fix in #91

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