How are you supposed to pass the `--no-docker-exec...
# general
a
How are you supposed to pass the
--no-docker-execution
flag on the command line? If I try (on 2.18), it tells me there's no such argument
--no-execution
in docker.
f
What's the exact command you are running?
a
Copy code
cbirzan@GP3CMXYV9V:~/PycharmProjects/cr_python$ pants --no-docker-execution package squire::
23:39:15.62 [INFO] Reading /Users/cbirzan/PycharmProjects/cr_python/.python-version to determine desired version for [python-bootstrap].search_path.
23:39:17.53 [INFO] Starting: Resolving plugins: boto3==1.24.59
23:39:33.49 [INFO] Completed: Resolving plugins: boto3==1.24.59
23:39:34.26 [INFO] Initializing scheduler...
23:39:38.56 [INFO] Scheduler initialized.
23:39:38.56 [INFO] Reading /Users/cbirzan/PycharmProjects/cr_python/.python-version to determine desired version for [python-bootstrap].search_path.
23:39:38.58 [INFO] Reading /Users/cbirzan/PycharmProjects/cr_python/.python-version to determine desired version for [python-bootstrap].search_path.
Unknown flag --no-execution on docker scope
Did you mean --no-tailor?
Use `pants help docker` to get help.
23:39:38.69 [ERROR] Unknown flags --no-execution on scope docker
Traceback (most recent call last):
  File "/Users/cbirzan/Library/Caches/nce/6faa4322d1df41d032e4938795c6f2c262ab92bb642a9bac1101cb7d1631f9c1/bindings/venvs/2.17.0/lib/python3.9/site-packages/pants/bin/daemon_pants_runner.py", line 134, in single_daemonized_run
    runner = LocalPantsRunner.create(
  File "/Users/cbirzan/Library/Caches/nce/6faa4322d1df41d032e4938795c6f2c262ab92bb642a9bac1101cb7d1631f9c1/bindings/venvs/2.17.0/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 109, in create
    options.for_scope(scope)
  File "/Users/cbirzan/Library/Caches/nce/6faa4322d1df41d032e4938795c6f2c262ab92bb642a9bac1101cb7d1631f9c1/bindings/venvs/2.17.0/lib/python3.9/site-packages/pants/util/memo.py", line 123, in memoize
    result = func(*args, **kwargs)
  File "/Users/cbirzan/Library/Caches/nce/6faa4322d1df41d032e4938795c6f2c262ab92bb642a9bac1101cb7d1631f9c1/bindings/venvs/2.17.0/lib/python3.9/site-packages/pants/option/options.py", line 350, in for_scope
    values = self.get_parser(scope).parse_args(parse_args_request)
  File "/Users/cbirzan/Library/Caches/nce/6faa4322d1df41d032e4938795c6f2c262ab92bb642a9bac1101cb7d1631f9c1/bindings/venvs/2.17.0/lib/python3.9/site-packages/pants/option/parser.py", line 289, in parse_args
    raise UnknownFlagsError(tuple(flag_value_map.keys()), self.scope)
pants.option.errors.UnknownFlagsError: Unknown flags --no-execution on scope docker

Use -ldebug for more logs.
See <https://www.pantsbuild.org/v2.17/docs/troubleshooting> for common issues.
Consider reaching out for help: <https://www.pantsbuild.org/v2.17/docs/getting-help>
Have you tried running pants with that command line option?
Hm, 2.17, it seems, not 2.18
f
a
yes
Just like Josh Cannon said "yes, that is the case" 😄
It's okay, since the env var works.
I don't really know why I couldn't find this when I searched for the issue initially, so yeah, it's a known issue