-
Notifications
You must be signed in to change notification settings - Fork 63
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
fix: avoid defining function based on alias errors #86
Conversation
Signed-off-by: Luis Davim <luis.davim@sendoso.com>
@luisdavim you should assign a person as kubermatic-bot suggest in the message above |
/assign @toschneck |
What will happen instead? Original aliases would be overridden? Also, I can't reproduce this in my bash. |
At least in zsh you get an error message saying that the function is based on an alias. It expands the alias before interpreting the function and fails. |
If you google for "function based on alias error", you'll find various similar cases in other projects that were also solved like this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
LGTM label has been added. Git tree hash: f8f9f17d0212613b2a0cad98957cc24f518015d0
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kron4eg, luisdavim The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@luisdavim thanks for your contribution! |
If users already have some aliases defined that collide with any of the functions defined here (if they for example also use https://github.com/ahmetb/kubectl-aliases) they will get an error saying "defining function based on alias" prefixing the function declarations with
function
will avoid this.Signed-off-by: Luis Davim luis.davim@sendoso.com