hundreds-father-404
10/10/2022, 10:27 PMhappy-kitchen-89482
10/11/2022, 2:58 PMwide-midnight-78598
10/11/2022, 7:20 PMbitter-ability-32190
10/11/2022, 8:19 PMfix
, Q on some UX.
Should fix
include formatters by default (and have a --skip-formatters
flag, akin to lint
)?
I think it's a nicer UX as fix
isn't meant to be run in a loop (buyer beware) as it'll blast your code. Running both fixers/formatters means people can still have a one-command "fix everything" goal.
fmt
will remain unchanged.bitter-ability-32190
10/12/2022, 2:00 PMPlease install Rustup and ensure `rustup` is on your PATH (usually by adding ~/.cargo/bin). See <https://rustup.rs>.
@happy-kitchen-89482 related to your changes?
https://github.com/pantsbuild/pants/actions/runs/3231220886/jobs/5296430521bitter-ability-32190
10/12/2022, 3:07 PMadd-trailing-comma
in experimental
to avoid the fmt
v fix
discussion. Time to have it 😛bitter-ability-32190
10/12/2022, 3:09 PMbitter-ability-32190
10/12/2022, 3:40 PMbuild_files
.
Thinking of add-trailing-comma
currently (I don't expect contributors to remember this, so we should as reviewers. Or invent a way to make this declarative 😛)
(consider because isort
makes no sense 😛)bitter-ability-32190
10/12/2022, 3:49 PMfix
! 🎉 https://github.com/pantsbuild/pants/pull/17202witty-crayon-22786
10/12/2022, 4:34 PMcareful-address-89803
10/12/2022, 6:34 PME pants.core.util_rules.system_binaries.BinaryNotFoundError: Was not able to locate a Python interpreter to execute rule code.
E
E Please ensure that Python is available in one of the locations identified by `[python-bootstrap].search_path`, which currently expands to:
E
E []
I'm not really sure what's up. I feel like I've dealt with this before, maybe I needed to pass my path through or something? is that necessary if I want a PythonSetup to show up?bitter-ability-32190
10/12/2022, 8:08 PMorigin
that should've been on my fork (fixgoal
for https://github.com/pantsbuild/pants/pull/17202). It'll be deleted as soon as I merge)witty-crayon-22786
10/12/2022, 8:44 PMwitty-crayon-22786
10/12/2022, 9:03 PMwitty-crayon-22786
10/13/2022, 5:04 PMbitter-ability-32190
10/13/2022, 5:12 PMpolite-garden-50641
10/13/2022, 8:42 PM20:41:15.86 [WARN] DEPRECATED: Not setting `Goal.environment_migrated=True` for `Goal` `auth-token-info` is scheduled to be removed in version 2.17.0.dev0.
See <https://www.pantsbuild.org/v2.15/docs/plugin-upgrade-guide>
20:41:15.86 [WARN] DEPRECATED: Not setting `Goal.environment_migrated=True` for `Goal` `auth-token-check` is scheduled to be removed in version 2.17.0.dev0.
See <https://www.pantsbuild.org/v2.15/docs/plugin-upgrade-guide>
busy-vase-39202
10/13/2022, 10:28 PMwitty-crayon-22786
10/14/2022, 2:21 AMhappy-kitchen-89482
10/14/2022, 6:47 AM[WARN] DEPRECATED: Not setting Goal.environment_migrated=True`` for `Goal` `update-build-files`
is scheduled to be removed in version 2.17.0.dev0.
in the pants repo?bitter-ability-32190
10/14/2022, 5:26 PMflat-zoo-31952
10/14/2022, 5:54 PMhundreds-father-404
10/14/2022, 9:04 PMhappy-kitchen-89482
10/15/2022, 12:27 AMwide-midnight-78598
10/15/2022, 5:03 AM./pants_from_sources dependencies helloworld/translator/translator_test.py
in example-python
00:57:24.50 [WARN] Pants cannot infer owners for the following imports in the target helloworld/translator/translator_test.py:tests:
* pytest (line: 4)
If you do not expect an import to be inferrable, add `# pants: no-infer-dep` to the import line. Otherwise, see <https://www.pantsbuild.org/v2.15/docs/troubleshooting#import-errors-and-missing-dependencies> for common problems.
This goes away if I add pytest
to my requirements.txt (//:reqs#pytest
) - but is that the correct resolution to this? Pytest is provided by pants, so shouldn't this dep be owned or found somewhere?wide-midnight-78598
10/15/2022, 5:08 PMmypy
uses the shim script as the python executable, but I'm wondering if we can just get the absolute venv location out of this data structure?
requirements_venv_pex = await Get(
VenvPex,
PexRequest(
output_filename="requirements_venv.pex",
internal_only=True,
pex_path=[requirements_pex],
interpreter_constraints=InterpreterConstraints(["==3.9.15"]),
),
)
requirements_venv_pex.venv_rel_dir
ancient-vegetable-10556
10/17/2022, 6:03 PMhundreds-father-404
10/17/2022, 6:46 PMbitter-ability-32190
10/17/2022, 7:39 PMbitter-ability-32190
10/17/2022, 7:46 PMBUILD
file deprecations fixer. I'm proposing we might want a "meta" bucket for backends and this might belong (because eventually it'll encompass pants.toml
and be a bit of a "deprecations" fixer for all of Pants)
Other "meta" plugins that could join
• Plugin to find and error on redundant dependencies
declarations
Thoughts?