forked from commercialhaskell/stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better errors for 00-index, and ignore-revision-mismatch commercialha…
- Loading branch information
Showing
11 changed files
with
110 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import StackTest | ||
import Control.Monad | ||
import Data.List | ||
import System.Directory | ||
|
||
main :: IO () | ||
main = do | ||
copyFile "bad-stack.yaml" "stack.yaml" | ||
stackErrStderr ["build", "--dry-run"] $ \msg -> | ||
unless ("legacy 00-index.tar.gz" `isInfixOf` msg) $ | ||
error "Expected a warning about 00-index usage" | ||
copyFile "good-stack.yaml" "stack.yaml" | ||
stack ["build", "--dry-run"] |
2 changes: 2 additions & 0 deletions
2
test/integration/tests/3520-revision-matching/files/.gitignore
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,2 @@ | ||
stack.yaml | ||
*.cabal |
6 changes: 6 additions & 0 deletions
6
test/integration/tests/3520-revision-matching/files/bad-stack.yaml
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,6 @@ | ||
resolver: lts-9.10 | ||
|
||
package-indices: | ||
- name: Hackage00 | ||
download-prefix: https://hackage.haskell.org/package | ||
http: https://hackage.haskell.org/00-index.tar.gz |
8 changes: 8 additions & 0 deletions
8
test/integration/tests/3520-revision-matching/files/good-stack.yaml
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 @@ | ||
resolver: lts-9.10 | ||
|
||
package-indices: | ||
- name: Hackage00 | ||
download-prefix: https://hackage.haskell.org/package | ||
http: https://hackage.haskell.org/00-index.tar.gz | ||
|
||
ignore-revision-mismatch: true |
9 changes: 9 additions & 0 deletions
9
test/integration/tests/3520-revision-matching/files/package.yaml
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,9 @@ | ||
name: issue3520 | ||
version: 0.1.0.0 | ||
|
||
dependencies: | ||
- base | ||
- mtl | ||
|
||
library: | ||
source-dirs: src |
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 @@ | ||
module Foo where |