[macOS] do not install stack install hook (#6377)

This commit is contained in:
Mikhail Koliada
2022-10-10 16:17:51 +02:00
committed by GitHub
parent 56b797b0bb
commit dcc9b447cb
2 changed files with 10 additions and 0 deletions

View File

@@ -28,3 +28,4 @@ export HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS=3650
export HOMEBREW_CASK_OPTS="--no-quarantine" export HOMEBREW_CASK_OPTS="--no-quarantine"
export BOOTSTRAP_HASKELL_NONINTERACTIVE=1 export BOOTSTRAP_HASKELL_NONINTERACTIVE=1
export BOOTSTRAP_HASKELL_INSTALL_NO_STACK_HOOK=1

View File

@@ -16,4 +16,13 @@ Describe "Haskell" {
"cabal --version" | Should -ReturnZeroExitCode "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
}
}
} }