-
-
Notifications
You must be signed in to change notification settings - Fork 13.3k
percona-toolkit: fix missing go tools issue #261451
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
base: main
Are you sure you want to change the base?
Conversation
chenrui333
left a comment
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.
can you also add test to verify the change? also can bump the revision as well?
gromgit
left a comment
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.
Homebrew builds for all of {Intel,ARM}-{Linux,macOS}, so this hardcoding is guaranteed to fail on three different build platforms. You should probably do something similar to
homebrew-core/Formula/n/newrelic-infra-agent.rb
Lines 29 to 34 in 7e9261b
| goarch = Hardware::CPU.intel? ? "amd64" : Hardware::CPU.arch.to_s | |
| os = OS.kernel_name.downcase | |
| ENV["VERSION"] = version.to_s | |
| ENV["GOOS"] = os | |
| ENV["CGO_ENABLED"] = OS.mac? ? "1" : "0" | |
| ENV["GOARCH"] = goarch |
|
Linking my comment at #261450 (comment) The changes here won't work as issue is not GOOS/GOARCH but how MakeMaker expands globs. To showcase this, you can compare Makefile output of following:
|
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>, where<formula>is the name of the formula you're submitting?brew test <formula>, where<formula>is the name of the formula you're submitting?brew audit --strict <formula>(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it passbrew audit --new <formula>?