Open patrickserrano opened 3 years ago
@dmccaffery @patrickserrano Off topic but: What was the purpose of having install-gcloud? anything wrong with just using brew to install gcloud? I see that it will install kubctl and some other stuff; was that the only reason?
I was helping @zihli get set-up with prompt on macOS and ran into an issue installing the gcloud sdk using
install-gcloud
in version8.3.0-next.4
. I was able to recreate the error on a fresh install of macOS:For reference the issue initially appeared on macOS 10.15 and then was reproduced on macOS 11. Existing prompt installs don't seem to have issues using the SDK if it was previously installed.
It looks like #85 made changes to the install script, and based on the error it looks like there's an issue with the
C
flag intar -xfC
.Looking at the manpage for tar, it seems like
-C
and--directory
are the same flag. I can't tell if that was intentional or not.Though the macOS manpage shows this:
I've tried changing the flags and reordering some of the options when calling tar and managed to get it to extract and start the install but the SDK isn't available on the path. While looking into that, I noticed there are inconstancies in the paths we're referencing the install at: