fresh-mechanic-68429
05/30/2025, 6:23 PM--filter-address-regex
?
I'm trying to partition a monorepo by address prefix (which works) but I want a "catch all" that runs everything not caught by the other partitionsfast-nail-55400
05/30/2025, 6:33 PMfast-nail-55400
05/30/2025, 6:33 PMfast-nail-55400
05/30/2025, 6:34 PMre
module does have syntax for negative lookahead and lookbehind assertions.)fresh-mechanic-68429
05/30/2025, 6:35 PM--filter-address-regex='(?!my-path)'
But thats producing
[ERROR] Problem parsing --filter-address-regex string list value:
1:(?!my-path)
-^
Expected "'", ",", "\"" or the end of a tuple indicated by ')' at line 1 column 2
Its trying to parse that as a tuple?fast-nail-55400
05/30/2025, 6:49 PMfresh-mechanic-68429
05/30/2025, 6:52 PMfast-nail-55400
05/30/2025, 6:58 PMfast-nail-55400
06/04/2025, 6:46 PM-
negation syntax for filters and not just address regex filters. See https://github.com/pantsbuild/pants/pull/22372#issuecomment-2940935477 for details.fast-nail-55400
06/04/2025, 6:53 PMpants list :: --filter-address-regex="['^helloworld/']" --filter-address-regex="-tests$"
works as expected in the example-python
repository to list targets starting with helloworld/
and excluding those ending in tests
fast-nail-55400
06/06/2025, 9:38 PM