Skip to content

Commit 6a23604

Browse files
authored
Merge pull request #12151 from ethereum/remove-homebrew-workarounds
Remove CircleCI+Homebrew workarounds
2 parents 6bca154 + 70d78a0 commit 6a23604

File tree

2 files changed

+0
-56
lines changed

2 files changed

+0
-56
lines changed

.circleci/config.yml

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -160,35 +160,6 @@ defaults:
160160
- store_test_results: *store_test_results
161161
- store_artifacts: *artifacts_test_results
162162

163-
- steps_homebrew_workaround_before_restore_cache: &steps_homebrew_workaround_before_restore_cache
164-
steps:
165-
- run:
166-
# Homebrew has recently replaced one of its dirs with a symlink to another.
167-
# This makes tar used by restore_cache fail - the image contains an older version of
168-
# Homebrew installed where it's a directory and tar refuses to overwrite a dir with a link.
169-
# Removing the directory manually is a workaround that works only in case we do have
170-
# cached files to restore. If we don't, we still need this dir because it contains
171-
# a git wrapper that Homebrew uses to update itself. The solution is to just rename the
172-
# dir before restore_cache and renamed it back afterwards.
173-
# See https://github.com/ethereum/solidity/pull/12106 for more details.
174-
name: Workaround for restore_cache + /usr/local/Homebrew/Library/Homebrew/shims/scm/
175-
command: |
176-
cd /usr/local/Homebrew/Library/Homebrew/shims/
177-
mv scm/ scm-backup/
178-
179-
- steps_homebrew_workaround_after_restore_cache: &steps_homebrew_workaround_after_restore_cache
180-
steps:
181-
- run:
182-
name: Workaround for restore_cache + /usr/local/Homebrew/Library/Homebrew/shims/scm/
183-
command: |
184-
cd /usr/local/Homebrew/Library/Homebrew/shims/
185-
if ! [[ -e scm/ ]]
186-
then
187-
mv scm-backup/ scm/
188-
else
189-
rm -r scm-backup/
190-
fi
191-
192163
- test_ubuntu1604_clang: &test_ubuntu1604_clang
193164
docker:
194165
- image: << pipeline.parameters.ubuntu-1604-clang-ossfuzz-docker-image >>
@@ -654,19 +625,11 @@ jobs:
654625
MAKEFLAGS: -j 5
655626
steps:
656627
- checkout
657-
- when:
658-
condition: true
659-
# FIXME: Remove this workaround when CircleCI fixes restore_cache.
660-
<<: *steps_homebrew_workaround_before_restore_cache
661628
- restore_cache:
662629
keys:
663630
- dependencies-osx-{{ arch }}-{{ checksum ".circleci/osx_install_dependencies.sh" }}
664631
# DO NOT EDIT between here and save_cache, but rather edit ./circleci/osx_install_dependencies.sh
665632
# WARNING! If you do edit anything here instead, remember to invalidate the cache manually.
666-
- when:
667-
condition: true
668-
# FIXME: Remove this workaround when CircleCI fixes restore_cache.
669-
<<: *steps_homebrew_workaround_after_restore_cache
670633
- run:
671634
name: Install build dependencies
672635
command: ./.circleci/osx_install_dependencies.sh
@@ -698,17 +661,9 @@ jobs:
698661
TERM: xterm
699662
steps:
700663
- checkout
701-
- when:
702-
condition: true
703-
# FIXME: Remove this workaround when CircleCI fixes restore_cache.
704-
<<: *steps_homebrew_workaround_before_restore_cache
705664
- restore_cache:
706665
keys:
707666
- dependencies-osx-{{ arch }}-{{ checksum ".circleci/osx_install_dependencies.sh" }}
708-
- when:
709-
condition: true
710-
# FIXME: Remove this workaround when CircleCI fixes restore_cache.
711-
<<: *steps_homebrew_workaround_after_restore_cache
712667
- attach_workspace:
713668
at: .
714669
- run: *run_soltest
@@ -722,17 +677,9 @@ jobs:
722677
TERM: xterm
723678
steps:
724679
- checkout
725-
- when:
726-
condition: true
727-
# FIXME: Remove this workaround when CircleCI fixes restore_cache.
728-
<<: *steps_homebrew_workaround_before_restore_cache
729680
- restore_cache:
730681
keys:
731682
- dependencies-osx-{{ arch }}-{{ checksum ".circleci/osx_install_dependencies.sh" }}
732-
- when:
733-
condition: true
734-
# FIXME: Remove this workaround when CircleCI fixes restore_cache.
735-
<<: *steps_homebrew_workaround_after_restore_cache
736683
- attach_workspace:
737684
at: .
738685
- run: *run_cmdline_tests

.circleci/osx_install_dependencies.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ function validate_checksum {
5252

5353
if [ ! -f /usr/local/lib/libz3.a ] # if this file does not exists (cache was not restored), rebuild dependencies
5454
then
55-
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
56-
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
57-
brew update
5855
brew unlink python
5956
brew install boost
6057
brew install cmake

0 commit comments

Comments
 (0)