-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Keys never loaded #34
Comments
Possibly related to https://github.com/lando/lando/issues/3091
So it never gets past the Am I on the wrong hunt here? The logic looks wrong. |
So big goose hunt on with @pirog over slack. We may have found an underlying cause for the inconsistencies. This looks like its due to a BusyBox flavour of grep.
Docker image To upgrade grep to a gnu install, and make it work, in your Dockerfile you could add: RUN apk add --no-cache --upgrade grep It would appear there is some inconsistencies between the greps out there. I wonder if something like busybox detection might be the answer here? Minimal impact. if grep --help 2>&1 | grep -q -i "busybox"; then
... this greps crazy shit, set a diff condition
fi https://bugs.busybox.net/show_bug.cgi?id=13151 https://lists.gnu.org/archive/html/bug-grep/2017-08/msg00010.html |
@sonuku to add more fun to this we get status code All said and now that we understand the issue here i think we should just switch over to the |
Yeah seems depending on your grep version (even gnu) |
hihi - circling the square here - wherever possible we try to avoid overwriting the busybox packages, just to avoid potential complications. Thanks for digging into this @sonuku! |
cli/plugins/lando-core/scripts/load-keys.sh
Line 93 in 53eaddc
Should this be a lowercase L?
https://linux.die.net/man/1/grep
-L, --files-without-match
-l, --files-with-matches
Uppercase L means it never adds the files from the candidates?
Locally changing to a
-l
fixes and loads up keys.Without it, nothing.
Without ssh keys, cant use a lot of the junk.
The text was updated successfully, but these errors were encountered: