hundreds-father-404
03/05/2022, 12:40 AMfast-nail-55400
03/07/2022, 8:17 PMDependenciesRequest
return a java_source
target as its own dependency, but I don’t see that behavior for a scala_source
target.hundreds-father-404
03/08/2022, 12:46 AMhundreds-father-404
03/08/2022, 4:16 PMhundreds-father-404
03/08/2022, 9:21 PMwitty-crayon-22786
03/09/2022, 12:21 AMbitter-ability-32190
03/09/2022, 3:55 PMpy-spy
in the docs: https://www.pantsbuild.org/v2.10/docs/contributions-debugging If folks think it's good I'll copy to the other pages.bitter-ability-32190
03/09/2022, 4:42 PMhundreds-father-404
03/09/2022, 4:44 PMgenerate-lockfiles
to always generate using Pex JSON. But do we think it's valuable to indefinitely let users keep manually generating their requirements.txt style lockfiles, e.g. via pip-compile or poetry export?ancient-vegetable-10556
03/09/2022, 5:21 PMhundreds-father-404
03/09/2022, 7:11 PMavailable_concurrency
for building a PEX x lockfiles:fast-nail-55400
03/09/2022, 10:32 PMClasspathEntry
down to just those generated from a jvm_artifact
?plain-fireman-49959
03/10/2022, 10:07 AMhundreds-father-404
03/10/2022, 6:30 PMfast-nail-55400
03/10/2022, 7:23 PMBuiltinGoal
, how do I access the environment? os.environ
is empty except for PANTS_BIN_NAME
. Do I need to make an EnvironmentRequest
to the engine?hundreds-father-404
03/10/2022, 9:47 PMbitter-ability-32190
03/11/2022, 12:07 PMbitter-ability-32190
03/11/2022, 9:04 PMhundreds-father-404
03/11/2022, 10:13 PMdev3
, which means we're supposed to start rc0
today/this weekend per our release strategy. We reflected in Pants 2.8 it was bad we violated this.
Anyone trying to get things into 2.11 still?bitter-ability-32190
03/12/2022, 12:52 PMbitter-ability-32190
03/13/2022, 1:41 PMregister_options
https://github.com/pantsbuild/pants/pull/14772flat-zoo-31952
03/13/2022, 9:27 PM<http://quay.io/pypa/manylinux_2_24_aarch64|quay.io/pypa/manylinux_2_24_aarch64>
with a rust toolchain installed in it? I'm not sure what all is needed to build pants or run GHA, but doing something targeted has got to be easier than a kitchen sink approach, right?happy-kitchen-89482
03/14/2022, 12:13 AMhappy-kitchen-89482
03/14/2022, 12:14 AMhappy-kitchen-89482
03/14/2022, 12:15 AMflat-zoo-31952
03/14/2022, 12:59 PMnarrow-vegetable-37489
03/14/2022, 1:34 PMbuf breaking
. I have a few questions though since (to me) adding and using it is not as straight forward as a normal linter is. See thread!narrow-vegetable-37489
03/14/2022, 1:35 PMbuf breaking
needs a previous state to compare against in order to detect breaking changes. My naive approach is to simply piggyback on Pants' pants.base.build_environment.get_git
and pants.vcs.changed.ChangedOptions
functionality. get_git
to get the git workdir (from the currently protected _gitdir
attribute) and `ChangedOptions.diffspec`/`ChangedOptions.since` to get the rev to compare the local tree against. If `ChangedOptions.diffspec`/`ChangedOptions.since` it can fall back on HEAD
, and if get_git
returns None
then the linter will be skipped I guess?
I'm not entirely sure how to put it all together. get_git
seems to be callable from anywhere, so that should be simple enough, but ChangedOptions
I'm struggling to get into my linter rule, probably because it's not intended to be used directly by rules but rather to determine which sources to provide the rules with.
I'm also pondering about on how to structure the code and its options. The current linter is located in pants/backend/codegen/protobuf/lint/buf
. Is this even a linter, or is a test or a check? Right now I've renamed the current rules.py
to lint_rules.py
and have introduce breaking_rules.py
. I imagine people will want the option to only enable/disable one of them, so bundling them in the same backend might not be the best approach. Then there's also the subsystem which I, of course, want to reuse for both, but should it be extended so lint
and breaking
have different options_scope
perhaps?
I appreciate any and all feedback 🖖bitter-ability-32190
03/14/2022, 1:41 PMChangedOptions
just have your rule take in Changed
as a parameter. Then use changed.<attr>
hundreds-father-404
03/14/2022, 4:53 PMspecs_calculator.py
. https://github.com/pantsbuild/pants/issues/13724 tracks this - if you're interested, we'd be happy to write instructions
Re different backends, it sounds like breaking
might align with our notion of check
than lint
- check
is intended for heavier weight-things like typechecking and compilation