diff options
author | SsnL <tongzhou.wang.1994@gmail.com> | 2019-01-09 07:48:12 -0800 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2019-01-09 07:50:36 -0800 |
commit | fe15d6a2c231a7bc1b32781217ed336ccf9adff7 (patch) | |
tree | bdad4f1e68414e1cfd59a735f54a0893ed86c562 /.circleci | |
parent | f0c2a9a7b68f77841ba112088deedcd01ddc978a (diff) | |
download | pytorch-fe15d6a2c231a7bc1b32781217ed336ccf9adff7.tar.gz pytorch-fe15d6a2c231a7bc1b32781217ed336ccf9adff7.tar.bz2 pytorch-fe15d6a2c231a7bc1b32781217ed336ccf9adff7.zip |
Fix macos build (#15873)
Summary:
macos builds are broken now with the following error:
```
/usr/local/Homebrew/Library/Homebrew/config.rb:39:in `initialize': no implicit conversion of nil into String (TypeError)
from /usr/local/Homebrew/Library/Homebrew/config.rb:39:in `new'
from /usr/local/Homebrew/Library/Homebrew/config.rb:39:in `<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Homebrew/Library/Homebrew/global.rb:25:in `<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/brew.rb:13:in `require_relative'
from /usr/local/Homebrew/Library/Homebrew/brew.rb:13:in `<main>'
Exited with code 1
```
No recent commits look suspicious, and I can even reproduce locally on my macbook, so it might be related to some new `brew` updates. Empirically, calling `brew update` first seems to fix this.
Example error build: https://circleci.com/gh/pytorch/pytorch/534392?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15873
Differential Revision: D13608019
Pulled By: soumith
fbshipit-source-id: 1499cb5246929e275a11ca6fccef6ef32918e45e
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index e8eff41737..e89598f361 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -307,6 +307,7 @@ caffe2_macos_build_defaults: &caffe2_macos_build_defaults export IN_CIRCLECI=1 + brew update # moreutils installs a `parallel` executable by default, which conflicts with the executable from the GNU `parallel` # so we must unlink GNU `parallel` first, and relink it afterwards brew unlink parallel @@ -459,6 +460,8 @@ smoke_mac_build: &smoke_mac_build set -ex export DATE=today export NIGHTLIES_DATE_PREAMBLE=1.0.0.dev + + brew update # moreutils installs a `parallel` executable by default, which conflicts with the executable from the GNU `parallel` # so we must unlink GNU `parallel` first, and relink it afterwards brew unlink parallel @@ -814,6 +817,8 @@ jobs: set -e export IN_CIRCLECI=1 + + brew update # moreutils installs a `parallel` executable by default, which conflicts with the executable from the GNU `parallel` # so we must unlink GNU `parallel` first, and relink it afterwards brew unlink parallel @@ -861,6 +866,8 @@ jobs: command: | set -e export IN_CIRCLECI=1 + + brew update # moreutils installs a `parallel` executable by default, which conflicts with the executable from the GNU `parallel` # so we must unlink GNU `parallel` first, and relink it afterwards brew unlink parallel @@ -889,6 +896,7 @@ jobs: export IN_CIRCLECI=1 + brew update # moreutils installs a `parallel` executable by default, which conflicts with the executable from the GNU `parallel` # so we must unlink GNU `parallel` first, and relink it afterwards brew unlink parallel |