-
Notifications
You must be signed in to change notification settings - Fork 81
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 build issues on macOS and general build improvements #71
Conversation
This adds a helpful tip for macOS users which suggests to use Homebrew to upgrade the Bash version, as macOS ships with Bash 3 by default.
A dollar sign was incorrectly missing in `Makefile.tools` which prevented the correct execution of the `go` command to extract the `GOPATH`.
This retrocompatible change shifts the default install directory of `kubebuilder` to `/usr/local/opt`, which is by default writable by non-root users on macOS. This preserves the old `$PATH` entry of `kubebuilder` for retrocompatibility.
Hi @Robertof. Thanks for your PR. I'm waiting for a pusher member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
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.
LGTM, thanks for the fixes! 😍
/ok-to-test |
@JoelSpeed do these look legit/familiar to you? Looking at the logs it doesn't seem like they're related to the tooling |
@Robertof There are (unfortunately) a few tests which flake every now and then, I've set them to rerun, definitely not related to your changes! |
This PR addresses the issues found in #46. In particular:
configure
script depends on bash 4, but gave a particularly bland message. This makes it print a special message formacOS
users suggesting how to upgradebash
to version 4 (as by default macOS ships with version 3)golangci-lint
inMakefile.tools
had a missing$
in a shell evaluation leading to an incorrect path being used for the linting toolkubebuilder
is now being installed in/usr/local/opt
instead of/usr/local
by default as that directory is writable by default on macOS.\o/ Hacktoberfest!