happy-kitchen-89482
06/26/2022, 6:19 PMcareful-address-89803
06/26/2022, 8:47 PMpython_requirements
in the "/build_support/bin"? I added one and had to regenerate the root lockfile, which didn't seem right?happy-kitchen-89482
06/26/2022, 9:28 PMhappy-kitchen-89482
06/26/2022, 9:28 PMhappy-kitchen-89482
06/26/2022, 9:28 PMhappy-kitchen-89482
06/26/2022, 9:29 PMcareful-address-89803
06/26/2022, 9:42 PMcareful-address-89803
06/26/2022, 9:55 PMhappy-kitchen-89482
06/26/2022, 10:07 PMhappy-kitchen-89482
06/26/2022, 10:07 PMhappy-kitchen-89482
06/26/2022, 10:07 PMhundreds-father-404
06/27/2022, 4:08 PMfast-nail-55400
06/27/2022, 4:18 PMfast-nail-55400
06/27/2022, 4:19 PMfast-nail-55400
06/27/2022, 4:21 PM|
-separated fields which is not even close to intuitive.happy-kitchen-89482
06/27/2022, 6:01 PMhappy-kitchen-89482
06/27/2022, 6:02 PMhappy-kitchen-89482
06/27/2022, 6:02 PMhappy-kitchen-89482
06/27/2022, 6:02 PMhundreds-father-404
06/27/2022, 7:05 PMcareful-address-89803
06/27/2022, 7:36 PMhundreds-father-404
06/27/2022, 7:46 PMbreaking backwards compatibility).Plugin API is not stable, so it's "legal". Although where possible, we try to be good citizens and properly deprecate plugin stuff Generally, we're trying to get our APIs right before we stabilize, even though that is a worse short-term experience
sparse-lifeguard-95737
06/30/2022, 9:36 PMmsgfmt
on .po
files (trying to replicate Django’s compilemessages
management command), but I’m having trouble getting my rule
to be recognized by export-codegen
. Details in 🧵big-xylophone-43403
07/01/2022, 3:31 PM10:26:19.01 [ERROR] 1 Exception encountered:
ProcessExecutionFailure: Process 'Generate lockfile for python-default' failed with exit code 1.
stdout:
stderr:
ERROR: Could not find a version that satisfies the requirement pantsbuild.pants.testutil<2.13,>=2.12.0a0
ERROR: No matching distribution found for pantsbuild.pants.testutil<2.13,>=2.12.0a0
proud-dentist-22844
07/01/2022, 9:11 PMSpecsWithoutFileOwners
doesn't sound right, so, what is the new way to do this:
all_expanded_targets = await Get(Targets, AddressSpecs([DescendantAddresses("")]))
Ultimately I need to get a list of all targets in the repo that have my extension's field
https://github.com/st2sandbox/st2/blob/pants/pants-plugins/stevedore_extensions/python_dependency_injection.py#L58-L61ambitious-actor-36781
07/05/2022, 10:42 AMExportRequest
union type
and I'm just getting an error about ExportVenvsRequest
which is a bit confusing.
source: https://github.com/xlevus/gymkhana-timer/blob/61c5e4c9d2bb622b85bf71bb3a84ad7480a56dbb/pants-plugins/upants/goals/export_upython_package.py
Exception caught: (builtins.ValueError)
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/bin/pants", line 8, in <module>
sys.exit(main())
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/bin/pants_loader.py", line 115, in main
PantsLoader.main()
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/bin/pants_loader.py", line 111, in main
cls.run_default_entrypoint()
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/bin/pants_loader.py", line 93, in run_default_entrypoint
exit_code = runner.run(start_time)
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/bin/pants_runner.py", line 99, in run
runner = LocalPantsRunner.create(
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 148, in create
graph_session = cls._init_graph_session(
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 78, in _init_graph_session
scheduler = EngineInitializer.setup_graph(
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/init/engine_initializer.py", line 185, in setup_graph
return EngineInitializer.setup_graph_extended(
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/init/engine_initializer.py", line 309, in setup_graph_extended
scheduler = Scheduler(
File "/home/xlevus/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0_py39/lib/python3.9/site-packages/pants/engine/internals/scheduler.py", line 212, in __init__
self._py_scheduler = native_engine.scheduler_create(
Exception message: Encountered 4 rule graph errors:
No installed rules return the type ExportVenvsRequest, and it was not provided by potential callers of @rule(pants.backend.python.goals.export:135:export_virtualenvs(ExportVenvsRequest, PythonSetup, DistDir) -> ExportResults, gets=[Get(ExportResult, _ExportVenvRequest)]).
If that type should be computed by a rule, ensure that that rule is installed.
If it should be provided by a caller, ensure that it is included in any relevant Query or Get.
No source of dependency DistDir for @rule(pants.backend.python.goals.export:135:export_virtualenvs(ExportVenvsRequest, PythonSetup, DistDir) -> ExportResults, gets=[Get(ExportResult, _ExportVenvRequest)]). All potential sources were eliminated: []
No source of dependency Get(ExportResult, _ExportVenvRequest) for @rule(pants.backend.python.goals.export:135:export_virtualenvs(ExportVenvsRequest, PythonSetup, DistDir) -> ExportResults, gets=[Get(ExportResult, _ExportVenvRequest)]). All potential sources were eliminated: []
No source of dependency PythonSetup for @rule(pants.backend.python.goals.export:135:export_virtualenvs(ExportVenvsRequest, PythonSetup, DistDir) -> ExportResults, gets=[Get(ExportResult, _ExportVenvRequest)]). All potential sources were eliminated: []
NoneType: None
bitter-ability-32190
07/05/2022, 10:45 AMsparse-lifeguard-95737
07/05/2022, 2:25 PMapps.py
files, to replicate the dependency rules that Django uses for pulling in models/migrations/templates etc. Our apps.py
files are mostly lightweight, but a few import some 3rd-party libraries. wondering if I could implement a dependency-inference rule for MyCustomDjangoAppsTarget
, and within the rule do something like cast(PythonSourceTarget, my_custom_target)
, use that to run the “default” dependency inference for python code, then tack on the extra django-specific dependenciesfast-nail-55400
07/07/2022, 1:16 AME ValueError: Encountered 3 rule graph errors:
E No installed rules return the type WrappedTargetRequest, and it was not provided by potential callers of @rule(pants.engine.internals.graph:327:resolve_target(WrappedTargetRequest, TargetTypesToGenerateTargetsRequests) -> WrappedTarget, gets=[Get(_TargetParametrizations, _TargetParametrizationsRequest)]).
E If that type should be computed by a rule, ensure that that rule is installed.
E If it should be provided by a caller, ensure that it is included in any relevant Query or Get.
E No source of dependency Get(_TargetParametrizations, _TargetParametrizationsRequest) for @rule(pants.engine.internals.graph:327:resolve_target(WrappedTargetRequest, TargetTypesToGenerateTargetsRequests) -> WrappedTarget, gets=[Get(_TargetParametrizations, _TargetParametrizationsRequest)]). All potential sources were eliminated: []
E No source of dependency TargetTypesToGenerateTargetsRequests for @rule(pants.engine.internals.graph:327:resolve_target(WrappedTargetRequest, TargetTypesToGenerateTargetsRequests) -> WrappedTarget, gets=[Get(_TargetParametrizations, _TargetParametrizationsRequest)]). All potential sources were eliminated: []
any ideas on what rule need to be put into RuleRunner to satisfy this rule graph error? pants.engine.internals.graph
is already listed.careful-address-89803
07/07/2022, 3:52 AM[INFO] values.yaml: file does not exist
[WARNING] templates/: directory not found
but they're definitely there (created with a helm init foo
, and helm lint foo
works fine). I think those files should be pulled in through a sourcesfield [here](https://github.com/pantsbuild/pants/blob/5430176e16bf68b2cc291698036ddca182cf0769/src/python/pants/backend/helm/target_types.py#L109)
Can someone confirm that the helm plugin is working, it should be working with just helm_chart()
in the BUILD file and I shouldn't need to add anything? Or those files aren't pulled in automatically and it's more like docker, where I need to add a dependency on a file
target?
This is working directly out of source files on this commit, 2.14.0.dev1