-
Notifications
You must be signed in to change notification settings - Fork 373
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
krew outputs incorrect warning during "krew completion [..]" command if KREW_ROOT
is set
#767
Comments
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Scenario
I set
KREW_ROOT
to${XDG_DATA_HOME}/krew
.I add
${KREW_ROOT}/bin
toPATH
after runningkrew completion [..]
.Note: I'm using
zsh
.Result
I get a misleading warning.
Code
Misleading Warning
Issues
KREW_ROOT
export PATH="${PATH}:${KREW_ROOT:-"${HOME}/.krew"}/bin"
krew completion
commandbin
dir inPATH
bin
dir toPATH
after loading completions still results in a working setupNotes
I'm aware that it is possible to get rid of the warning by loading the completions after adding krew's
bin
dir toPATH
.The text was updated successfully, but these errors were encountered: