From 9e049e70ef7029f01d0a1219b747a37984c399fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Mon, 15 Mar 2021 18:49:32 +0100 Subject: [PATCH] [CI] Fix test_macos with recent bash for nix-shell (#10480) * [CI] Initialize nix environment in prepare_build * [CI] Install recent bash for nix-shell on macos --- bin/ci | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/ci b/bin/ci index bdb4d53342d7..05cca928eaa1 100755 --- a/bin/ci +++ b/bin/ci @@ -149,6 +149,14 @@ prepare_build() { on_osx brew update --preinstall on_osx brew bundle --no-lock + # Install a recent bash version for nix-shell. + # macos ships with an ancient one. + if [ `uname` = "Darwin" ]; then + on_nix_shell "brew install bash" + fi + # initialize nix environment + on_nix_shell nix-shell + # Note: brew link --force might show: # Warning: Refusing to link macOS-provided software: llvm #