-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #5697 Move stack to lts-19.7 (GHC 9.0.2) from lts-17.15 (GHC 8.10.4)
Also seeks to update the tests to use a current stable release GHC compiler. `Stack.Test.runRepl` was not working, apparently because it was referring to a directory (`/tmp`, equivalent to `C:\tmp`) that did not exist. Uses `Stack.Prelude.sinkProcessStderrStdout` in `Stack.PackageDump.ghcPkgCmdArgs` in attempt to avoid `ghc-pkg-9.0.2: startProcess: posix_spawnp: invalid argument (Bad file descriptor)` on macOS. Also updates the scripts to `lts-19.7`. These have been tested with `stack script <script.hs> --no-run --compile --resolver=lts-19.7`. Adds `*.exe` to `.gitignore` (an artefact on Windows of testing scripts). Temporarily alter CI script to try and diagnose the macOS CI problem. Temporarily alter `111-custom-snapshot/Main.hs` to provide more information, to try and diagnose the macOS CI problem.
- Loading branch information
Showing
123 changed files
with
194 additions
and
146 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
*.hi | ||
*.o | ||
*.exe | ||
*.swp | ||
*.tag | ||
*~ | ||
|
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
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import StackTest | ||
|
||
main :: IO () | ||
main = stack ["build"] | ||
main = do | ||
stack ["--verbose", "build"] -- More information, to try to diagnose the | ||
-- macos-latest CI problem. |
2 changes: 1 addition & 1 deletion
2
test/integration/tests/111-custom-snapshot/files/my-snapshot.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
compiler: ghc-8.6.5 | ||
compiler: ghc-9.0.2 | ||
name: my-snapshot | ||
packages: | ||
- mtl-2.2.1 |
2 changes: 1 addition & 1 deletion
2
test/integration/tests/1265-extensible-snapshots/files/snapshot-2.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resolver: ghc-8.6.5 | ||
resolver: ghc-9.0.2 | ||
name: test-snapshot-2 | ||
packages: | ||
- stm-2.5.0.0 | ||
|
2 changes: 1 addition & 1 deletion
2
test/integration/tests/1265-extensible-snapshots/files/snapshot-modify-lts.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resolver: lts-14.27 | ||
resolver: lts-19.7 | ||
name: snapshot-modify-lts | ||
drop-packages: | ||
- zlib |
2 changes: 1 addition & 1 deletion
2
test/integration/tests/1265-extensible-snapshots/files/snapshots/local-snapshot.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
resolver: lts-14.27 | ||
resolver: lts-19.7 | ||
name: local-snapshot | ||
packages: | ||
- archive: package-0.1.2.3.tar.gz |
4 changes: 2 additions & 2 deletions
4
test/integration/tests/1265-extensible-snapshots/files/snapshots/remote-snapshot.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
resolver: lts-14.27 | ||
resolver: lts-19.7 | ||
name: remote-snapshot | ||
packages: | ||
- archive: https://s3.amazonaws.com/hackage.fpcomplete.com/package/ghc-prim-0.5.3.tar.gz | ||
- archive: https://s3.amazonaws.com/hackage.fpcomplete.com/package/ghc-prim-0.7.0.tar.gz |
2 changes: 1 addition & 1 deletion
2
test/integration/tests/1337-unicode-everywhere/files/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resolver: lts-14.27 | ||
resolver: lts-19.7 | ||
packages: | ||
- '.' | ||
extra-deps: [] | ||
|
2 changes: 1 addition & 1 deletion
2
test/integration/tests/1438-configure-options/files/stack-everything.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resolver: ghc-8.6.5 | ||
resolver: ghc-9.0.2 | ||
|
||
extra-deps: | ||
- acme-dont-1.1@rev:0 | ||
|
2 changes: 1 addition & 1 deletion
2
test/integration/tests/1438-configure-options/files/stack-locals.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resolver: ghc-8.6.5 | ||
resolver: ghc-9.0.2 | ||
|
||
extra-deps: | ||
- acme-dont-1.1@rev:0 | ||
|
2 changes: 1 addition & 1 deletion
2
test/integration/tests/1438-configure-options/files/stack-name.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resolver: ghc-8.6.5 | ||
resolver: ghc-9.0.2 | ||
|
||
extra-deps: | ||
- acme-dont-1.1@rev:0 | ||
|
2 changes: 1 addition & 1 deletion
2
test/integration/tests/1438-configure-options/files/stack-targets.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resolver: ghc-8.6.5 | ||
resolver: ghc-9.0.2 | ||
|
||
extra-deps: | ||
- acme-dont-1.1@rev:0 | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resolver: lts-14.27 | ||
resolver: lts-19.7 | ||
packages: | ||
- '.' | ||
extra-deps: [] | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
resolver: lts-14.27 | ||
resolver: lts-19.7 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resolver: ghc-8.6.5 | ||
resolver: ghc-9.0.2 | ||
packages: | ||
- foo | ||
- bar |
2 changes: 1 addition & 1 deletion
2
test/integration/tests/2997-ensure-warnings-output/files/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resolver: ghc-8.6.5 | ||
resolver: ghc-9.0.2 | ||
packages: | ||
- foo | ||
- bar | ||
|
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ flags: {} | |
packages: | ||
- '.' | ||
extra-deps: [] | ||
resolver: lts-14.27 | ||
resolver: lts-19.7 |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
resolver: lts-14.27 | ||
resolver: lts-19.7 | ||
packages: | ||
- '.' |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ flags: {} | |
packages: | ||
- '.' | ||
extra-deps: [] | ||
resolver: lts-14.27 | ||
resolver: lts-19.7 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
resolver: ghc-8.6.5 | ||
resolver: ghc-9.0.2 |
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
2 changes: 1 addition & 1 deletion
2
test/integration/tests/3431-precompiled-works/files/custom1/custom1.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resolver: ghc-8.6.5 | ||
resolver: ghc-9.0.2 | ||
name: custom1 | ||
packages: | ||
- stm-2.5.0.0 | ||
|
2 changes: 1 addition & 1 deletion
2
test/integration/tests/3431-precompiled-works/files/custom2/custom2.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resolver: ghc-8.6.5 | ||
resolver: ghc-9.0.2 | ||
name: custom2 | ||
packages: | ||
- stm-2.5.0.0 | ||
|
2 changes: 1 addition & 1 deletion
2
test/integration/tests/345-override-bytestring/files/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
2 changes: 1 addition & 1 deletion
2
test/integration/tests/3533-extra-deps-solver/files/orig-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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resolver: lts-14.27 | ||
resolver: lts-19.7 | ||
|
||
packages: | ||
- ./local-mmorph | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resolver: ghc-8.6.5 | ||
resolver: ghc-9.0.2 | ||
|
||
packages: [] | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
test/integration/tests/3591-cabal-warnings-once/files/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 |
---|---|---|
@@ -1 +1 @@ | ||
resolver: lts-14.27 | ||
resolver: lts-19.7 |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ flags: {} | |
packages: | ||
- '.' | ||
extra-deps: [] | ||
resolver: lts-14.27 | ||
resolver: lts-19.7 |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ flags: {} | |
packages: | ||
- '.' | ||
extra-deps: [] | ||
resolver: lts-14.27 | ||
resolver: lts-19.7 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
resolver: ghc-8.6.5 | ||
resolver: ghc-9.0.2 |
2 changes: 1 addition & 1 deletion
2
test/integration/tests/3787-internal-libs-with-no-main-lib/files/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 |
---|---|---|
@@ -1 +1 @@ | ||
resolver: lts-14.27 | ||
resolver: lts-19.7 |
2 changes: 1 addition & 1 deletion
2
test/integration/tests/3861-ignore-bounds-in-snapshots/files/snapshot.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resolver: ghc-8.6.5 | ||
resolver: ghc-9.0.2 | ||
packages: | ||
- ./bad-bounds.tar | ||
|
||
|
Oops, something went wrong.