Repository navigation
More consistently pass --package-db flag to tests - #9954
Merged
Merged
Conversation
geekosaur
approved these changes
Apr 29, 2024
mpickering
force-pushed
the
wip/package-db-more
branch
from
April 29, 2024 15:47
b53fa62 to
04af5ce
Compare
alt-romes
approved these changes
Apr 30, 2024
alt-romes
left a comment
Collaborator
There was a problem hiding this comment.
Thanks! I've been bitten by this previously a couple of times... it's really not great for the testsuite behaviour of
cabal "build" [] to differ from cabal "v2-build" [], and leads to quite incomprehensible failures 🚨
Member
|
Is this ready for merge? If so, @mpickering could you mark it so by setting one of the merge labels? Thank you. |
Member
|
@mergify rebase |
Contributor
✅ Branch has been successfully rebased |
Mikolaj
force-pushed
the
wip/package-db-more
branch
from
May 1, 2024 10:05
04af5ce to
0bc3708
Compare
Previously `--package-db` was only passed to test which used the `v2-` prefix. Now we pass `--package-db` to things which use the `v2-` prefix, not things which use the `v1-` prefix and by default assume that unprefixed commands are v2 commands.
Mikolaj
force-pushed
the
wip/package-db-more
branch
from
May 3, 2024 10:10
0bc3708 to
2b44677
Compare
1 of 2 tasks
Collaborator
|
@mergify backport 3.12 |
Contributor
✅ Backports have been createdDetails
|
1 of 2 tasks
mergify Bot
added a commit
that referenced
this pull request
Jun 3, 2024
…10067) * More consistently pass --package-db flag to tests Previously `--package-db` was only passed to test which used the `v2-` prefix. Now we pass `--package-db` to things which use the `v2-` prefix, not things which use the `v1-` prefix and by default assume that unprefixed commands are v2 commands. (cherry picked from commit 2b44677) # Conflicts: # cabal-testsuite/PackageTests/CustomTestCoverage/cabal.out * fixup! resolve conflicts --------- Co-authored-by: Matthew Pickering <[email protected]> Co-authored-by: Artem Pelenitsyn <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously
--package-dbwas only passed to test which used thev2-prefix.Now we pass
--package-dbto things which use thev2-prefix, not things which use thev1-prefix and by default assume that unprefixed commands are v2 commands.Please read Github PR Conventions and then fill in one of these two templates.