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

MacOS infinite loop EULA prompt #8

Closed
David-Engel opened this issue Dec 12, 2017 · 4 comments
Closed

MacOS infinite loop EULA prompt #8

David-Engel opened this issue Dec 12, 2017 · 4 comments

Comments

@David-Engel
Copy link
Contributor

On macOS 10.11 and 10.12

Run

brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release
brew update

Then calling

ACCEPT_EULA=Y brew install --no-sandbox msodbcsql mssql-tools

does not remove the prompt to accept the EULA. Calling

yes | ACCEPT_EULA=Y brew install --no-sandbox msodbcsql mssql-tools

causes the prompt to loop indefinitely because only YES or NO is accepted at the prompt. Setting the ACCEPT_EULA environment variable does not appear to have any effect.

Since this problem first occurred on 12/11 after the nightly builds, we suspect a homebrew-core update from a few hours later may have something to do with it.

@David-Engel
Copy link
Contributor Author

This broke the setting of environment variables: Homebrew/brew#3529

It can be overridden by setting HOMEBREW_NO_ENV_FILTERING=1.

Thus, following command will work to install:

HOMEBREW_NO_ENV_FILTERING=1 ACCEPT_EULA=Y brew install --no-sandbox msodbcsql mssql-tools

Remove "yes" from your command. It is not necessary and causes the infinite loop you described.

@David-Engel
Copy link
Contributor Author

We will update mac installation docs to reflect the change in Homebrew.

@AceHack
Copy link

AceHack commented May 28, 2023

HOMEBREW_NO_ENV_FILTERING no longer works in the latest brew and ACCEPT_EULA=Y seems to make no difference

@v-chojas
Copy link
Contributor

Have you tried HOMEBREW_ACCEPT_EULA ? #85
(I know the name is misleading, as this is not about accepting Homebrew's EULA, but the naming was needed to workaround the env filtering.)

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

No branches or pull requests

3 participants