rapid-bird-79300
07/02/2021, 7:25 PM--changed-since
at the same time as target arguments but it's not in the command at all:
./pants import-fixer --jobs=cross-imports --import-fixer-output-file=cross_imports_output.json app/::
17:27:47.34 [INFO] Initializing scheduler...
17:27:47.50 [INFO] Scheduler initialized.
17:27:47.53 [ERROR] You used `--changed-since` at the same tie as using target arguments. Please use only one.
Traceback (most recent call last):
File "/home/ubuntu/workspace/backend_master/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.1rc3_py38/lib/python3.8/ite-packages/pants/bin/daemon_pants_unner.py", line 125, in single_daemonized_run
runner = LocalPantsRunner.create(
File "/home/ubuntu/workspace/backend_master/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.1rc3_py3/lib/python3.8/site-package/pants/bin/local_pants_runner.py", line 150, in create
specs = calculate_specs(
File "/home/ubuntu/workspace/backend_master/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.1rc3_py38/lib/pthon3.8/site-packages/pants/init/specs_calculator.py", line 47, in calculate_specs
raise InvalidSpecConstraint(
pants.init.specs_calculator.InvalidSpecConstraint: You used `--changed-since` at the same time as using target arguments. Please use only one.
+ ./pants import-fixer --jobs=wildcard-imports --ignore-skip --json-output --import-fixer-output-file=wildcard_imports_output.json app/::
17:27:48.10 [ERROR] You used `--changed-since` at the same time as using target arguments. Please use only one.
Traceback (most recent call last):
File "/home/ubuntu/workspace/backend_master/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/bin/daemon_pants_runner.py", line 125, in single_daemonized_run
runner = LocalPantsRunner.create(
File "/home/ubuntu/workspace/backend_master/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/bin/ocal_pants_runner.py", line 150, in create
specs = calculatespecs(
File "/home/ubuntu/workspace/backend_master/.cache/pants/setup/bootstrp-Linux-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/init/specs_calculator.py", line 47, in calculat_specs
raise InvalidSpecConstraint(
pants.init.specs_calculator.InvalidSpecConstraint: Youused `--changed-since` at the same time as using target arguments. Please use only one.
I tested the goal locally with no issues. Any ideas why this would happen?hundreds-father-404
07/02/2021, 7:27 PMrapid-bird-79300
07/02/2021, 7:34 PMhundreds-father-404
07/02/2021, 7:36 PMrapid-bird-79300
07/02/2021, 7:39 PM./pants dependees --changed-since=${LAST_RELEASE_COMMIT} --dependees-output-file=pants_dependees.txt
this is called before the command above. Seems like it could have started happening around the same time actuallyhundreds-father-404
07/02/2021, 7:40 PMrapid-bird-79300
07/02/2021, 7:41 PMhundreds-father-404
07/02/2021, 9:21 PMrapid-bird-79300
07/02/2021, 11:05 PMhundreds-father-404
07/02/2021, 11:11 PM215627.04 [DEBUG] specs are: Specs(address_specs=AddressSpecs(literals=(), globs=(DescendantAddresses(directory='app'),), filter_by_global_options=True), filesystem_specs=FilesystemSpecs(includes=(), ignores=()))
215627.04 [DEBUG] changed_options are: ChangedOptions(since='6db38768e8de2a4182a32b55d329e6c398800b77', diffspec=None, dependees=<DependeesOption.NONE: 'none'>)
app:: --changed-since=6db38768e8de2a4182a32b55d329e6c398800b77
rapid-bird-79300
07/02/2021, 11:32 PMapp/::
targets. Maybe I can force it not to use the cache by running ::
instead?hundreds-father-404
07/02/2021, 11:33 PMrapid-bird-79300
07/02/2021, 11:33 PM./pants dependees --changed-since=6db38768e8de2a4182a32b55d329e6c398800b77 --dependees-output-file=pants_dependees.txt
app::
hundreds-father-404
07/03/2021, 1:57 AMrapid-bird-79300
07/03/2021, 1:59 AMhundreds-father-404
07/03/2021, 2:35 AMrapid-bird-79300
07/03/2021, 2:37 AM+ ./pants list app::
You used `--changed-since` at the same time as using target arguments. Please use only one.
Traceback (most recent call last):
File "/home/ubuntu/workspace/rippling-main_PR-59021/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/bin/pants_loader.py", line 100, in run_default_entrypoint
exit_code = runner.run(start_time)
File "/home/ubuntu/workspace/rippling-main_PR-59021/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/bin/pants_runner.py", line 97, in run
runner = LocalPantsRunner.create(
File "/home/ubuntu/workspace/rippling-main_PR-59021/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/bin/local_pants_runner.py", line 150, in create
specs = calculate_specs(
File "/home/ubuntu/workspace/rippling-main_PR-59021/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/init/specs_calculator.py", line 47, in calculate_specs
raise InvalidSpecConstraint(
pants.init.specs_calculator.InvalidSpecConstraint: You used `--changed-since` at the same time as using target arguments. Please use only one.
script returned exit code 1
hundreds-father-404
07/03/2021, 3:28 AMrapid-bird-79300
07/03/2021, 3:33 AMPANTS_CHANGED_SINCE
in a config or as an env. We only ever add it as an option on the dependees
goal.
Another thing you could try is run ./pants list at the beginning of the run, with no args. Does it give back results or does it warn no targets specifiedsure I can give this a try too
./pants list
pants-plugins/import_fixer/import_fixer.py
the error still occurs$ ./pants list
WARNING: No targets were matched in goal `list`.
--changed-since=${PANTS_CHANGED_SINCE}
that is definitely the root of the chaoshundreds-father-404
07/03/2021, 4:32 AM