Skip to content

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

@alexarchambault
Copy link
Member

Thanks! Will give this a try whenever I have time, prior to merging

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'

2 participants