Merge pull request #6374 from hasufell/haskell/no-stack-install-hook
Don't install stack install hook
This commit is contained in:
@@ -9,6 +9,7 @@ source $HELPER_SCRIPTS/etc-environment.sh
|
|||||||
|
|
||||||
# Any nonzero value for noninteractive installation
|
# Any nonzero value for noninteractive installation
|
||||||
export BOOTSTRAP_HASKELL_NONINTERACTIVE=1
|
export BOOTSTRAP_HASKELL_NONINTERACTIVE=1
|
||||||
|
export BOOTSTRAP_HASKELL_INSTALL_NO_STACK_HOOK=1
|
||||||
export GHCUP_INSTALL_BASE_PREFIX=/usr/local
|
export GHCUP_INSTALL_BASE_PREFIX=/usr/local
|
||||||
export BOOTSTRAP_HASKELL_GHC_VERSION=0
|
export BOOTSTRAP_HASKELL_GHC_VERSION=0
|
||||||
ghcup_bin=$GHCUP_INSTALL_BASE_PREFIX/.ghcup/bin
|
ghcup_bin=$GHCUP_INSTALL_BASE_PREFIX/.ghcup/bin
|
||||||
|
|||||||
@@ -31,4 +31,8 @@ Describe "Haskell" {
|
|||||||
It "Stack" {
|
It "Stack" {
|
||||||
"stack --version" | Should -ReturnZeroExitCode
|
"stack --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
It "Stack hook is not installed" {
|
||||||
|
"$HOME/.stack/hooks/ghc-install.sh" | Should -Not -Exist
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user