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

Add passthrough for mirrors file environment variable. #10

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

Conversation

jabrouwer82
Copy link

Brew sandboxes installation in such a way that the mirrors.properties file referenced in the docs isnt' easily available. Brew overrides $HOME and filters out almost all environment variables that don't start with "HOMEBREW_", so the application config file location is a temporary directory and you can't directly pass COURSIER_MIRRORS or to the installer.

This was the most minimally intrusive change I could find to fix the issue, it allows the user to set HOMEBREW_COURSIER_MIRRORS as an environment variable and the install section of the formula temporarily forwards that value to coursier as COURSIER_MIRRORS .

This should resolve coursier/coursier#1953

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.

Brew upgrade fails with 'exited with 255. Here's the output'
1 participant