diff --git a/images/macos/provision/configuration/environment/bashrc b/images/macos/provision/configuration/environment/bashrc index 65895e7b..95cdffb1 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 525e8934..a0c11ce1 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