fast-nail-55400
02/10/2022, 6:18 PMbusy-vase-39202
02/10/2022, 9:13 PMDo you guys use <https://github.com/pantsbuild/jarjar> (its archived now) I have some fixes, not sure if you need/would like them.
Thoughts?bitter-ability-32190
02/11/2022, 2:04 AMflat-zoo-31952
02/11/2022, 1:26 PMhundreds-father-404
02/11/2022, 4:46 PMbitter-ability-32190
02/11/2022, 5:31 PM# delete me
comments in generated commits through the git hookhundreds-father-404
02/11/2022, 6:11 PMbitter-ability-32190
02/11/2022, 8:45 PMcurved-television-6568
02/12/2022, 7:40 PMshell_command
in a pants.backend.experimental.shell
backend rather than a experimental_shell_command
in pants.backend.shell
⦠?fresh-cat-90827
02/13/2022, 4:30 PMhydrated_sources.snapshot.files
.
Now Iād like to copy them (while preserving the inner directory hierarchy) into a new, temporary directory that needs to exist on disk. Iāll need to pass that directory path to a binary tool. Can I access such a location in some temporary build directory somewhere?fresh-cat-90827
02/14/2022, 10:05 AMProcess
. There was a file produced. I need to rename that file.
files = await Get(DigestEntries, Digest, result.output_digest) # result is from "await Get(ProcessResult, Process(...))"
for file in files:
print(f"Path: {file.path}")
print(f"Path: {file.file_digest}")
get
stdout: "Path: file.data"
stdout: "\n"
stdout: "Path: FileDigest('a5958f492644f5abe6f784fb1840b70e279143cbbc5d3a0770d7554a8b80d982', 796)"
Reading https://www.pantsbuild.org/docs/rules-api-file-system#digestentries. Do I need to write the FileDigest
on disk (to produce a brand new file) with Workspace.write_digest()
or is there a mechanism to update the filename in place?busy-vase-39202
02/14/2022, 8:04 PMhundreds-father-404
02/14/2022, 8:53 PMfast-nail-55400
02/16/2022, 2:58 AMbitter-ability-32190
02/17/2022, 7:57 PMmypy
when adding a py3.7+ dep? The current project's Python requirement (>=3.6)
I thought Pants was 3.7+?bitter-ability-32190
02/18/2022, 1:39 AMmypy
in a subcprocess one way or another which doesn't work well in Pants' execution model.
Turns out pyright
(as of this year) and pytype
have type assertions built-in, and it might make it into typing_extensions
, but mypy
is no-dice.
So, I had some fun and decided to hack it in mypy
through a plugin. Introducing my first and only PyPI package: mypy-typing-asserts
https://github.com/thejcannon/mypy-typing-asserts
And the resulting Pants PR (where the plugin found several issues š ) https://github.com/pantsbuild/pants/pull/14527bitter-ability-32190
02/18/2022, 1:48 AMhappy-kitchen-89482
02/18/2022, 4:35 PMwide-midnight-78598
02/18/2022, 4:39 PMenough-analyst-54434
02/18/2022, 4:39 PMenough-analyst-54434
02/18/2022, 4:40 PMenough-analyst-54434
02/18/2022, 4:40 PMenough-analyst-54434
02/18/2022, 4:43 PMenough-analyst-54434
02/18/2022, 4:43 PMenough-analyst-54434
02/18/2022, 4:43 PMbitter-ability-32190
02/18/2022, 4:49 PMbitter-ability-32190
02/18/2022, 4:49 PMwide-midnight-78598
02/18/2022, 4:49 PMbrew install pants
is where I'd like to getbitter-ability-32190
02/18/2022, 4:51 PMhappy-kitchen-89482
02/18/2022, 4:55 PM