Skip to content

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

@sbocinec

Description

@sbocinec

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions