bitter-ability-32190
07/12/2022, 1:10 PMregister_plugin_field
on Target
. This is awesome!wide-midnight-78598
07/15/2022, 7:28 PMgoal
without being in a @rule
?ambitious-actor-36781
07/19/2022, 5:32 AMTransitiveTargets.closure
in two different targets causing a recursion.wide-midnight-78598
07/24/2022, 4:45 PMcalm-ambulance-65371
07/25/2022, 8:07 PMbuild_dir_removed = await Get(
Digest, RemovePrefix(result.output_digest, "target/release")
)
digest_entries = await Get(DigestEntries, Digest, build_dir_removed)
so_digest = None
for entry in digest_entries:
if isinstance(entry, FileEntry) and ".so" in entry.path:
<http://logger.info|logger.info>("Found rust digest entry: %s", entry.path)
new_entry = FileEntry(
path=entry.path.lstrip("lib"),
file_digest=entry.file_digest,
is_executable=entry.is_executable,
)
so_digest = await Get(Digest, CreateDigest([new_entry]))
break
if not so_digest:
raise ValueError("Unable to compile rust .so target. No ouput??")
calm-ambulance-65371
07/25/2022, 8:08 PMcalm-ambulance-65371
07/25/2022, 8:16 PMcalm-ambulance-65371
07/26/2022, 2:44 PMwitty-crayon-22786
07/26/2022, 4:09 PMcareful-address-89803
08/01/2022, 9:16 PMdef config_request(self) -> ConfigFilesRequest:
return ConfigFilesRequest(
specified=self.config,
specified_option_name=f"[{self.options_scope}].config",
check_existence=["pyproject.toml"],
check_content={"pyproject.toml": b"[tool.vulture]"},
)
bitter-ability-32190
08/08/2022, 3:30 PMGet(PythonExecutable, InterpreterConstraints, request.interpreter_constraints),
TypeError: Invalid Get. Because you are using the shorthand form Get(OutputType, InputType(constructor args)), the second argument should be a constructor call, rather than a type, but given <class 'pants.backend.python.util_rules.interpreter_constraints.InterpreterConstraints'>.
But the code uses the 3-arg:
Get(PythonExecutable, InterpreterConstraints, request.interpreter_constraints),
wide-midnight-78598
08/11/2022, 1:36 AMambitious-actor-36781
08/12/2022, 2:23 AMcontract
target depends on python_sources
which /eventually/ depends on a second contract
and I can't package two contracts into one.
So either I need to ignore the contract -> sources
relationship (for anything that isn't off the root target), or just stop at contract
Currently I've added a skip_contract_pkg
flag to PythonSources, but its kinda gross and probably gonna bite me in the ass.narrow-judge-15725
08/12/2022, 12:19 PMambitious-actor-36781
08/15/2022, 9:59 AMpants test
can run all docker, python, and whatever else it supports.bitter-ability-32190
08/16/2022, 6:05 PMfmt
, and in my pants/backend/build_files/fmt/black
registration, I think I want to do some "ensure python is registered", and/or re-register the black
subsystem ruleswitty-crayon-22786
08/16/2022, 6:35 PMbitter-ability-32190
08/16/2022, 6:36 PMwitty-crayon-22786
08/16/2022, 6:36 PMwitty-crayon-22786
08/16/2022, 6:36 PMbitter-ability-32190
08/16/2022, 6:36 PMbitter-ability-32190
08/16/2022, 6:37 PMupdate-build-files
code 🤔bitter-ability-32190
08/16/2022, 6:59 PMhundreds-father-404
08/16/2022, 7:08 PMbitter-ability-32190
08/16/2022, 7:08 PMabundant-leather-17386
08/22/2022, 1:52 PM./pants lint path/to/file.sql
both the formatter and the linter run, while I would like to only run the linter when using the lint
goal. Any tips on how to achieve this?ambitious-actor-36781
08/23/2022, 5:45 AMbitter-ability-32190
08/28/2022, 1:13 AMUnion
to work as a return type? E.g. await Get(Foo, ...)
gives me all rules registered returning a type that has an associated UnionRule(Foo, ...
)?ambitious-actor-36781
08/29/2022, 2:38 AMPantsTargetProcess
that took an Address
instead of a .exebillions-keyboard-33102
08/30/2022, 10:09 AMSome example plugins that users have written:
• Cython supportWeb search shows an example here - but this is outdated now I think: https://github.com/jsirois/pants-issue-6029-pantsbug-example/tree/master/plugins/cython