Skip to content
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

Properly depend on homebrew jq formula. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

reegnz
Copy link

@reegnz reegnz commented Sep 14, 2023

The pre-built binary the formula downloaded is broken when used on newer macs where the homebrew prefix is not /usr/local but /opt/homebrew.

The formula should rely on homebrew telling where the library is, and build with CGO using that info.

To avoid incompatible installs, use the bottle mechanism of homebrew to fetch prebuilt packages (eg. for older macos versions and architectures), and leave installation by rebuilds open to newer architectures not having prebuilt bottles.

Fixes jzelinskie/faq#100

The pre-built binary the formula downloaded is broken when used on newer macs where the homebrew prefix is not `/usr/local` but `/opt/homebrew`.

The formula should rely on homebrew telling where the library is, and build with CGO using that info.

To avoid incompatible installs, use the `bottle` mechanism of homebrew to fetch prebuilt packages (eg. for older macos versions and architectures), and leave installation by rebuilds open to newer architectures not having prebuilt bottles.

Fixes jzelinskie/faq#100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mac executable is not statically linked
1 participant