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

While install dependencies using local/install_deps.bash on macOS with go installed, it won't install all dependencies. #218

Closed
chenhengjie123 opened this issue Feb 18, 2019 · 0 comments
Assignees
Labels
bug Something isn't working local development

Comments

@chenhengjie123
Copy link

On my macOS, I already installed python and go using brew. When I install dependencies using local/install_deps.bash, it always stops after running brew install bazel golang node nodeenv npm pkill python@2 xz command.

Logs like below:

$ local/install_deps_macos.bash
+ which brew
+ bazel_tap=bazelbuild/tap
+ brew tap
+ grep bazelbuild/tap
Error: Another active Homebrew update process is already in progress.
Please wait for it to finish or terminate it to continue.
+ brew tap --list-pinned
+ grep bazelbuild/tap
Error: Another active Homebrew update process is already in progress.
Please wait for it to finish or terminate it to continue.
+ brew install bazel golang node nodeenv npm pkill python@2 xz
Error: Another active Homebrew update process is already in progress.
Please wait for it to finish or terminate it to continue.
Warning: bazel is provided by core, but is now shadowed by bazelbuild/tap/bazel.
To refer to the core formula, use Homebrew/core/bazel instead.
Warning: bazelbuild/tap/bazel 0.22.0 is already installed and up-to-date
To reinstall 0.22.0, run `brew reinstall bazel`
Warning: node 11.10.0 is already installed, it's just not linked
You can use `brew link node` to link this version.
Warning: nodeenv 1.3.3 is already installed and up-to-date
To reinstall 1.3.3, run `brew reinstall nodeenv`
Warning: proctools 0.4pre1 is already installed and up-to-date
To reinstall 0.4pre1, run `brew reinstall proctools`
Warning: xz 5.2.4 is already installed and up-to-date
To reinstall 5.2.4, run `brew reinstall xz`
Error: go 1.5.3 is already installed
To upgrade to 1.11.5, run `brew upgrade go`
Error: python@2 2.7.15_1 is already installed
To upgrade to 2.7.15_3, run `brew upgrade python@2`

After checking the shell script, I found it starts with #!/bin/bash -ex , which would exit the script when first error occurs. It seems brew would throws error if some component with older version is installed before.

I replace #!/bin/bash -ex with #!/bin/bash -x as workaround, but it seems not perfect.

Hoping this issue could be fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working local development
Projects
None yet
Development

No branches or pull requests

2 participants