https://pantsbuild.org/ logo
#general
Title
# general
w

wooden-thailand-8386

10/30/2020, 4:33 PM
hey everyone, just doing a sanity check here… is this supposed to work?
Copy code
./pants --changed-since=origin/develop --changed-dependees=transitive --tag=build filter --target-types='archive'
I’m trying to get only the
archive
target from that list.. but I’m getting this python error:
Copy code
❯ ./pants --changed-since=origin/develop --changed-dependees=transitive --tag=build filter --target-types='archive'

Unknown flag --target-types on filter scope
Did you mean --target-type, --target, --type?
Use `./pants help filter` to get help.
12:30:59.26 [ERROR] Unknown flags --target-types on scope filter
Traceback (most recent call last):
  File "/Users/lzfnyy/.cache/pants/setup/bootstrap-Darwin-x86_64/2.0.0_py37/lib/python3.7/site-packages/pants/bin/daemon_pants_runner.py", line 146, in single_daemonized_run
    os.environ, options_bootstrapper, scheduler=scheduler
  File "/Users/lzfnyy/.cache/pants/setup/bootstrap-Darwin-x86_64/2.0.0_py37/lib/python3.7/site-packages/pants/bin/local_pants_runner.py", line 151, in create
    options.for_scope(scope)
  File "/Users/lzfnyy/.cache/pants/setup/bootstrap-Darwin-x86_64/2.0.0_py37/lib/python3.7/site-packages/pants/util/memo.py", line 123, in memoize
    result = func(*args, **kwargs)
  File "/Users/lzfnyy/.cache/pants/setup/bootstrap-Darwin-x86_64/2.0.0_py37/lib/python3.7/site-packages/pants/option/options.py", line 425, in for_scope
    values = self._parser_hierarchy.get_parser_by_scope(scope).parse_args(parse_args_request)
  File "/Users/lzfnyy/.cache/pants/setup/bootstrap-Darwin-x86_64/2.0.0_py37/lib/python3.7/site-packages/pants/option/parser.py", line 312, in parse_args
    raise UnknownFlagsError(tuple(flag_value_map.keys()), self.scope)
pants.option.errors.UnknownFlagsError: Unknown flags --target-types on scope filter
w

witty-crayon-22786

10/30/2020, 4:52 PM
can check
./pants help filter
to see what flags are supported
it looks like it’s
--target-type
, singular
🤯 2
w

wooden-thailand-8386

10/30/2020, 5:16 PM
oh wow, so we have a type on pantsbuild documentation haha, I didnt notice that extra
s
at all when reading from the
help
just submitted a suggestion to edit that part of the section
❤️ 1
3 Views