-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4268 from waddlaw/fix-clean
To prevent download ghc when using `stack clean`. Integration test attempts to clean with no ghc present and no ghc installation permitted.
- Loading branch information
Showing
9 changed files
with
103 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- | | ||
-- The integration tests have no ghc present, initially. Stack should not | ||
-- require ghc present to run the `clean` command. | ||
|
||
import StackTest | ||
|
||
main :: IO () | ||
main = do | ||
-- `stack clean` should succeed even though there is no ghc available. | ||
-- See the stack.yaml file for how this works. | ||
stack ["clean"] | ||
stack ["clean", "--full"] |
13 changes: 13 additions & 0 deletions
13
test/integration/tests/4181-clean-wo-dl-ghc/files/foo.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
cabal-version: >= 1.10 | ||
|
||
-- This file has been generated from package.yaml by hpack version 0.29.6. | ||
-- | ||
-- see: https://github.com/sol/hpack | ||
-- | ||
-- hash: 941a1ab4bea2f0ee229dd6ab7fe9730517a0397fb9141fe2841a0f9748dbfd57 | ||
|
||
name: foo | ||
version: 0.1.0.0 | ||
build-type: Simple | ||
|
||
library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Update the resolver as necessary | ||
resolver: ghc-8.22 | ||
# Do not use the system ghc, as ghc must not be available | ||
system-ghc: false | ||
# Do not install any other ghc, as ghc must not be available | ||
install-ghc: false | ||
packages: | ||
- '.' |