-
Notifications
You must be signed in to change notification settings - Fork 372
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 : sanitize PATH dir #665
Fix : sanitize PATH dir #665
Conversation
Welcome @RouxAntoine! |
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.
Thanks for fixing this! I left some nit comments, otherwise this looks good.
When you push your next revision, please @ me, then I'll take a look more quickly.
97099d1
to
1a3b005
Compare
@corneliusweig I fix your review, with just one reserve. Thanks for your review |
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.
Just some last nits and then let's merge this!
1a3b005
to
e102013
Compare
Second fix batch in commit e102013. Do you see my response here #665 (comment) ? |
/approve |
Actually comparaison between .krew/bin directory and path segment directory is done with equal operator. This PR allow method filepath.Abs to be call during krew path creation /internal/environment/environment.go#L43 and also in /cmd/krew/cmd/internal/setup_check.go#L62 path directory iteration
e102013
to
c57e77e
Compare
thanks i fixed both now all seem good for me :) @corneliusweig |
As i am not sure if edited message with @ ping really ping the personne So i allow myself to ping again @corneliusweig (sorry if duplicate) |
I think it doesn't, I had the same problem before :) Thanks again for looking into this! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: corneliusweig, RouxAntoine 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 |
Actually comparison between .krew/bin directory and path segment directory
is done with equal operator. This PR allow method filepath. Abs to be call during krew path creation
/internal/environment/environment.go#L43
and also in/cmd/krew/cmd/internal/setup_check.go#L62
path directory iterationFixes #664