-
Notifications
You must be signed in to change notification settings - Fork 364
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 immediately fails after installation under Macos Big Sur #683
Comments
Ok the problem seems to be that Macos as always likes to create .DS_Store Folders . .which is a common thing |
Interesting, I'll try to investigate this weekend after upgrading to big sur. Thanks for doing some digging and filing this issue! |
I had Krew installed prior to updating to Big Sur, and I'm not observing this. I can repro this by doing @chriskim06 it sounds like we need to Walk only directories under $KREW_ROOT/index but we currently aren't. There's probably no situation we should consider non-dir entries as index candidates. |
Although I must note that a clean install under Big Sur didn't result in this error. |
I think we are only walking directories now that I'm taking a closer look https://github.com/kubernetes-sigs/krew/blob/master/internal/index/indexoperations/index.go#L38-L58. We use
|
@chriskim06 yeah that returns all entries (it's a readdir syscall). |
/kind bug |
@ahmetb: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed 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. |
Oh ya makes sense, I misread the doc thinking it meant it only reads "entries that are directories" instead of "the entries in the directory" |
thanks for the quick reply |
I resolved the issue as follow :
And it works ! |
@chriskim06 @ahmetb So based on this comment (#683 (comment)) should I read the directory only and ignore all the files and assign them into the index over here? krew/internal/index/indexoperations/index.go Lines 44 to 55 in d52f13e
Thank You |
/assign |
This function looks in the
would be enough (and probably changing the name of that variable). It would be good to include this regardless though since as Ahmet mentioned:
If |
Hey @chriskim06. Gotcha, thank you for your quick response! Hopefully to submit a PR by today. Thank You! |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
is this still open? can I have a look? |
Hi spiros, I think I have fixed the issue.
…On Mon, Aug 9, 2021, 08:02 Spiros Economakis ***@***.***> wrote:
is this still open? can I have a look?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#683 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKFOJGIMDFEFJTY67SG243LT367UXANCNFSM4WCMKCCQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
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. |
Following this Process:
https://krew.sigs.k8s.io/docs/user-guide/setup/install/
Krew just fails directliy with:
0114 13:48:16.421460 7059 root.go:79] failed to retrieve plugin indexes: failed to list the remote URL for index .DS_Store: command execution failure, output="": fork/exec /usr/local/bin/git: not a directory
Envirnomnet:
git is accessible , as well as in the path, as also in /usr/local/bin
The text was updated successfully, but these errors were encountered: