atsalolikhin-spokeo commented on issue #10389: URL: https://github.com/apache/airflow/issues/10389#issuecomment-678445952
``` [~/git/airflow] fix/10389 ± pre-commit run build --verbose Check if image build is needed...........................................Failed - hook id: build - duration: 0.11s - exit code: 1 You are running pre_commit_ci_build.sh in OSX environment And you need to install gnu commands Run 'brew install gnu-getopt coreutils' Then link the gnu-getopt to become default as suggested by brew. If you use bash, you should run this command: echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.bash_profile . ~/.bash_profile If you use zsh, you should run this command: echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.zprofile . ~/.zprofile Login and logout afterwards !! After re-login, your PATH variable should start with "/usr/local/opt/gnu-getopt/bin" Your current path is [redacted] [~/git/airflow] fix/10389 ± ``` However I already have the brew formulae, but I didn't set up my PATH for gnu-getopt. ``` [~/git/airflow] fix/10389 ± brew list|grep 'coreutils\|gnu-getopt' coreutils gnu-getopt [~/git/airflow] fix/10389 ± echo $PATH | grep gnu-getopt [~/git/airflow] fix/10389 ± ``` Ok, so I set up my PATH: ``` [~/git/airflow] fix/10389 ± echo $PATH |grep gnu-getopt|cut -d: -f1 /usr/local/opt/gnu-getopt/bin [~/git/airflow] fix/10389 ± ``` (And I started a new shell, as per the instructions.) But the build is still failing: ``` [~/git/airflow] fix/10389 ± pre-commit run build --verbose Check if image build is needed...........................................Failed - hook id: build - duration: 0.15s - exit code: 1 You are running pre_commit_ci_build.sh in OSX environment And you need to install gnu commands Run 'brew install gnu-getopt coreutils' Then link the gnu-getopt to become default as suggested by brew. If you use bash, you should run this command: ... ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
