Skip to content

Test project options in combination and order - #12650

Open
philderbeast wants to merge 1 commit into
haskell:masterfrom
cabalism:test/project-option-combos
Open

philderbeast wants to merge 1 commit into
haskell:masterfrom
cabalism:test/project-option-combos

Conversation

@philderbeast

@philderbeast philderbeast commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

I went looking for tests that combine --project-file, --project-dir and --ignore-project and found only one that tests --project-dir with --project-file. These tests record which project is used for each combination and order.

.. option:: -z, --ignore-project
Ignores the local ``cabal.project`` file and uses the default
configuration with the local ``foo.cabal`` file. Note that
this flag will be ignored if either of the ``--project-dir`` or
``--project-file`` flags are also set.

What the docs say about --ignore-project being ignored is not always true so I've marked the tests that differ with a BUG marker.

Since raising this pull request, I've raised issue #12651 as I'm not sure the documented behaviour makes sense.


@philderbeast philderbeast changed the title Test combinations of the project options Test project options in combination and order Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant