forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Render a warning rather than failing
list
when no targets are match…
…ed (pantsbuild#5598) ### Problem The `v2` engine changed the behaviour of `./pants list` (with no specs) from "list everything", to "fail with an error". But due to the deprecation/removal of the `changed` goal, this also has the effect of failing with an error for `./pants --changed=.. list` calls that result in no matched targets, which is a behaviour change from `v1`. ### Solution Rather than raising an error, trigger a warning to stderr which naturally handles both cases by indicating that their query wasn't an error: it just didn't match anything.
- Loading branch information
1 parent
f8c6010
commit e53154c
Showing
4 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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