Skip to content

Commit

Permalink
Redo the test so the project doesn't sort 1st
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Dec 12, 2024
1 parent 33d2fcd commit 493bd34
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
packages: no-pkg-dir
import: extra.config
import: extra.config
import: very-extra.config
import: very-extra.config
import: an-extra.config
import: an-extra.config
import: a-very-extra.config
import: a-very-extra.config
import: https://www.stackage.org/lts-21.25/cabal.config
import: https://www.stackage.org/lts-21.25/cabal.config
import: with-ghc.config
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ main = cabalTest . recordMode RecordMarked $ do
"Project configuration is listed in full and deduplicated"
"When using configuration from:(\n|\r\n) \
\ .*cabal\\.project(\n|\r\n) \
\ .*extra\\.config(\n|\r\n) \
\ .*very-extra\\.config(\n|\r\n) \
\ .*a-very-extra\\.config(\n|\r\n) \
\ .*an-extra\\.config(\n|\r\n) \
\ .*with-ghc\\.config(\n|\r\n) \
\ .*https://www.stackage.org/lts-21.25/cabal.config(\n|\r\n)"
out
Expand Down
22 changes: 12 additions & 10 deletions changelog.d/pr-10546
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ message.
```
$ cat cabal.project
packages: no-pkg-dir
import: extra.config
import: extra.config
import: very-extra.config
import: very-extra.config
import: an-extra.config
import: an-extra.config
import: a-very-extra.config
import: a-very-extra.config
import: https://www.stackage.org/lts-21.25/cabal.config
import: https://www.stackage.org/lts-21.25/cabal.config

$ cat extra.config
$ cat an-extra.config
import: https://www.stackage.org/lts-21.25/cabal.config
import: https://www.stackage.org/lts-21.25/cabal.config

$ cat very-extra.config
$ cat a-very-extra.config
import: https://www.stackage.org/lts-21.25/cabal.config
import: https://www.stackage.org/lts-21.25/cabal.config
```
Expand All @@ -41,12 +41,13 @@ message.
```
$ ~/.ghcup/bin/cabal-3.12.1.0 build all --dry-run
When using configuration from:
- a-very-extra.config
- an-extra.config
- cabal.project
- extra.config
- https://www.stackage.org/lts-21.25/cabal.config
- https://www.stackage.org/lts-21.25/cabal.config
- https://www.stackage.org/lts-21.25/cabal.config
- very-extra.config
- with-ghc.config
The following errors occurred:
- The package location 'no-pkg-dir' does not exist.
```
Expand All @@ -57,8 +58,9 @@ message.
$ cabal build all --dry-run
When using configuration from:
- cabal.project
- extra.config
- very-extra.config
- a-very-extra.config
- an-extra.config
- with-ghc.config
- https://www.stackage.org/lts-21.25/cabal.config
The following errors occurred:
- The package location 'no-pkg-dir' does not exist.
Expand Down

0 comments on commit 493bd34

Please sign in to comment.