bitter-ability-32190
06/11/2022, 3:33 PMbitter-ability-32190
06/11/2022, 4:00 PMif True or x:
...
if x and False:
...
curved-television-6568
06/13/2022, 3:06 PM__defaults__
construct in BUILD files: https://github.com/pantsbuild/pants/discussions/15809hundreds-father-404
06/13/2022, 4:42 PM--find-links
support, fixing export
for "bifurcated requirements", and fixing the cache writing
What do we think about [python].lockfile_generator = {"pex", "poetry"}
? It's much more complex code for us, but it may ease incremental adoption because you can still use requirements.txt-style lockshundreds-father-404
06/14/2022, 1:09 AMbitter-ability-32190
06/14/2022, 1:57 PM./pants run <tool_subsystem>
?
I want to know what args black
or pylint
accepts. Running ./pants run black -- --help
would be AMAZING
(Also this could possibly replace repl
, if we support the REPLs in run
. Huzzah less goals?
I could do this with my own separate pex_binary
and resolve, but I think we all understand how nasty that it 🙂proud-dentist-22844
06/15/2022, 3:28 AMbitter-ability-32190
06/15/2022, 4:48 PMhappy-kitchen-89482
06/15/2022, 8:22 PMhundreds-father-404
06/16/2022, 3:08 AMproud-dentist-22844
06/16/2022, 3:33 AMfmt
tool adds a new file? Should that be reported in the list of changed files?
Pants 2.12 shows the files that fmt changed, but the changed list only includes files that were present in both input and output digests.
I dove into the code to figure out what does the diff.
This is where the diff is displayed:
https://github.com/pantsbuild/pants/blob/main/src/python/pants/core/goals/fmt.py#L116-L119
And this is where the actual diff happens, populating the list of changed_files
:
https://github.com/pantsbuild/pants/blob/main/src/rust/engine/fs/src/directory.rs#L599-L605
I believe that rust code only adds files to changed_files
if the file is in both ours
and theirs
during diff... but I don't understand some of the syntax of rust, so I'm not sure.wide-midnight-78598
06/16/2022, 2:07 PMbitter-ability-32190
06/16/2022, 2:31 PMdependencies
twice 😮happy-kitchen-89482
06/16/2022, 9:52 PMdescription_of_origin="<infallible>"
witty-crayon-22786
06/16/2022, 11:49 PM2.13.0a0
tomorrowbitter-ability-32190
06/17/2022, 4:18 PMrun
PR is how to switch between sandbox mode.
The friendliest solution IMO is a new run
flag, however this flag is only relevant when `run`ning a "scripting" language ("compiled" languages wouldn't benefit). So pros/cons.
The alternative is a field on python_source
and python_test
targets, which is a bit funkier and has no obvious CLI support (we could add a "default" CLI option to python
, but now we're talking even more machinery)
Thoughts y'all?hundreds-father-404
06/17/2022, 6:02 PMrun
PR https://github.com/pantsbuild/pants/pull/15849, [python].tailor_pex_binary_targets
is no longer very useful. Thoughts on what should happen? cc @happy-kitchen-89482curved-television-6568
06/17/2022, 6:58 PM__defaults__
PR is ready for review. Unless I’ve missed something, all points raised and covered in the design doc are now implemented. Thanks for all the valuable feedback during the design work.
https://github.com/pantsbuild/pants/pull/15836wide-midnight-78598
06/17/2022, 7:10 PM_binary
and I'm assuming that's referring to an artifact that is directly executable?
For library-centric, I see _package
and _distribution
Then I see a go_mod
jvm_artifact
and `jvm_war`and maybe deploy_jar
- which seem to be language-centric
So, if I'm creating a static or shared library (let's say C++ or Swift), should I call that _library
? Because that also used to be an alias for something... python_sources
maybe?witty-crayon-22786
06/17/2022, 7:17 PM2.13
, or should landing wait until after 2.13
has been cut? probably sometime over the weekendcurved-television-6568
06/17/2022, 7:18 PMwitty-crayon-22786
06/17/2022, 7:19 PMwitty-crayon-22786
06/17/2022, 7:19 PMaverage-vr-56795
06/18/2022, 8:14 AMaverage-vr-56795
06/18/2022, 8:31 AMfresh-cat-90827
06/18/2022, 10:06 PMcryptography
package talk about their Rust adoption, they have used PyO3 as well. Great talk to watch for anyone who wants to learn from their experiences wrt to Rust.curved-television-6568
06/19/2022, 8:09 AMcurved-television-6568
06/19/2022, 6:50 PMconvert_dir_literal_to_address_literal
does? When do I want that to be true/false?witty-family-13337
06/21/2022, 8:29 AMexperimental-deploy
goal and a PoC implementation for the Helm backend: https://docs.google.com/document/d/17wZRjiIxM5918ybC_0EnKY42qwd47-1ZporBdua8vRQ/edit?usp=sharing
My apologies for how drafty the document feels, having a mix of plenty at my plate and family issues at the moment so I couldn’t dedicate much time to it. Hope that the document plus the PoC Pull Request are useful to trigger a conversation.bitter-ability-32190
06/21/2022, 3:04 PMrun_in_sandbox
field to pex_binary
, which currently hasn't been put in a stable release yet.
https://github.com/pantsbuild/pants/pull/15849 reverts that change in lieu of another change that offers the same behavior, but in a different way.
We need to figure out our path forward for the current release:
1. Leave the feature, then do a full deprecation cycle and remove
2. Change the field to experimental_...
so we could pull the plug without deprecation
3. Get PR 15849 in
◦ I'm only waiting on docs addition and an open TODO I want feedback on
As the author of the PR, my vote will obviously be 3 😊 , but I'd like us to be intentional on our path forward.