From dcc9b447cb013aa965e5f536810e745e3d7e9654 Mon Sep 17 00:00:00 2001 From: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com> Date: Mon, 10 Oct 2022 16:17:51 +0200 Subject: [PATCH] [macOS] do not install stack install hook (#6377) --- images/macos/provision/configuration/environment/bashrc | 1 + images/macos/tests/Haskell.Tests.ps1 | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/images/macos/provision/configuration/environment/bashrc b/images/macos/provision/configuration/environment/bashrc index 65895e7b6..95cdffb10 100644 --- a/images/macos/provision/configuration/environment/bashrc +++ b/images/macos/provision/configuration/environment/bashrc @@ -28,3 +28,4 @@ export HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS=3650 export HOMEBREW_CASK_OPTS="--no-quarantine" export BOOTSTRAP_HASKELL_NONINTERACTIVE=1 +export BOOTSTRAP_HASKELL_INSTALL_NO_STACK_HOOK=1 diff --git a/images/macos/tests/Haskell.Tests.ps1 b/images/macos/tests/Haskell.Tests.ps1 index 525e89342..a0c11ce1a 100644 --- a/images/macos/tests/Haskell.Tests.ps1 +++ b/images/macos/tests/Haskell.Tests.ps1 @@ -16,4 +16,13 @@ Describe "Haskell" { "cabal --version" | Should -ReturnZeroExitCode } } + Context "Stack" { + It "Stack" { + "stack --version" | Should -ReturnZeroExitCode + } + + It "Stack hook is not installed" { + "$HOME/.stack/hooks/ghc-install.sh" | Should -Not -Exist + } + } } \ No newline at end of file