Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mix include and exclude paths in workflows #10777

Open
philderbeast opened this issue Feb 1, 2025 · 0 comments
Open

Mix include and exclude paths in workflows #10777

philderbeast opened this issue Feb 1, 2025 · 0 comments

Comments

@philderbeast
Copy link
Collaborator

philderbeast commented Feb 1, 2025

On reflection and after reading about excluding paths, we know the paths that cabal-install is dependent on, why don't we switch from paths-ignore to paths?

$ cabal info cabal-install
...
    Dependencies:  ... Cabal ...
                   Cabal-syntax ...
                   cabal-install-solver ...
                   Cabal-QuickCheck ...
                   Cabal-described ... Cabal-tests ... cabal-install, ...

It is also possible to mix, to exclude and include paths.

Originally posted by @philderbeast in #10740 (comment)

That would give us a configuration something like:

    paths:
      - 'Cabal-QuickCheck/**'
      - 'Cabal-described/**'
      - 'Cabal-syntax/**'
      - 'Cabal-tests/**'
      - 'Cabal/**'
      - 'cabal-install-solver/**'
      - 'cabal-install/**'
      - '!Cabal-tests/test/**'
      - '!cabal-testsuite/PackageTests/**'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant