-
Notifications
You must be signed in to change notification settings - Fork 26
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: Using gcloud without any parameters will crash #73
Comments
Same thing also happens with $ kubectl
/opt/homebrew/opt/asdf/libexec/lib/commands/command-exec.bash: line 23: shim_args[@]: unbound variable |
I think the above behavior is explained here https://github.com/jthegedus/asdf-gcloud#faq |
Actually this IS a bug as it prevents using gke-gcloud-auth-plugin... which forces me to rollback |
This error prevents using gke-gcloud-auth-plugin. I removed the What would a proper fix look like that both handles no arguments and errors out on other unset variables, e.g. to catch typos during dev work? |
Actually sourcing the plugins as printed at install time did solve the issuer for me : source /Users//.asdf/installs/gcloud/431.0.0/completion.zsh.inc Must have misses configured before. |
Describe the bug
I have a fresh installation of MacOS and asdf on a Macbook where I have ran following:
I'm using fish shell with these lines in my
~/.config/fish/config.fish
:When I run just bare
gcloud
I get following error:I would have expected to get list of all gcloud commands instead.
When I run command with parameters eg:
It works just fine.
I'm not sure if this is failure on my configuration but seems that something is wrong with the
/opt/homebrew/opt/asdf/libexec/lib/commands/command-exec.bash
For example if I run
python
installed with asdf I don't get any problems:Steps to reproduce
asdf version
v0.11.1
asdf-gcloud version
v1.2.2
gcloud version
415.0.0
Additional Information
No response
The text was updated successfully, but these errors were encountered: