-
-
Notifications
You must be signed in to change notification settings - Fork 761
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
openssl-sys | mac | Doesn't respect brew --prefix
#1813
Comments
brew --prefix
and instead makes an invalid assumptionbrew --prefix
and instead makes an invalid assumption
brew --prefix
and instead makes an invalid assumptionbrew --prefix
brew --prefix
brew --prefix
The current logic is pretty explicit about why this is done:
|
Premature optimization is the root of all evil, especially when it doesn't work.
|
|
Please describe to me how this optimization was made prematurely. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected
It should just work.
Encountered
Tries to link to unrelated brew environment with a different architecture and fails to compile. Several utility crates are affected.
Use case
There is an installation at
/opt/homebrew/
for a different architecture that absolutely cannot be moved. Cannot do magic environment variables workarounds because this is fragile and not scalable.Solution
Trying random "well-known" locations particular to tools is fragile, breaks repeatability, separations of concerns, and isolation of builds and dev environments.
Instead of guessing at locations, if the
brew
command exists, ask it for the source of truthbrew --prefix openssl@{{n}}
.The text was updated successfully, but these errors were encountered: