hey everyone, just doing a sanity check here… is t...
# general
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
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
  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
can check
./pants help filter
to see what flags are supported
it looks like it’s
, singular
🤯 2
oh wow, so we have a type on pantsbuild documentation haha, I didnt notice that extra
at all when reading from the
just submitted a suggestion to edit that part of the section
❤️ 1