able-school-92027
07/03/2024, 6:29 PM*.zip
, *.tar.xz
, etc) downloaded during the TemplatedExternalTool
setup cached somehow? If yes, where/how are those files cached?wide-midnight-78598
07/03/2024, 6:41 PMwide-midnight-78598
07/03/2024, 6:42 PM--keep-sandboxes=always
you can find them in your sandbox
e.g.
-r-xr-xr-x 1 sj staff 4303745 Jul 3 14:37 science-macos-aarch64
Buuut, in terms of cache (~/.cache/pants/lmdb_store/immutable/files/d1)
-r-xr-xr-x 1 sj staff 4303745 Jul 3 14:39 d1e6eefd9bc89f2edb39775435ee25ad7fd5b158431561ac6fbbbf1552f855c0
There is probably a way to make them exportable though? But I'm not sureable-school-92027
07/03/2024, 6:46 PMwide-midnight-78598
07/03/2024, 6:47 PMable-school-92027
07/03/2024, 6:48 PMwide-midnight-78598
07/03/2024, 6:49 PMable-school-92027
07/03/2024, 6:54 PM<s3://my_bucket/my_external_tool/1.0.0/my_tool.zip>
, so in this case every time I download my external tool, it will download my_tool.zip
, but the content can be different according to the version.wide-midnight-78598
07/03/2024, 6:57 PM-ldebug
might provide some insight
https://github.com/pantsbuild/pants/blob/50a4e75b69321f3a2d3cb110433144c7f586ae38/src/python/pants/core/util_rules/external_tool.py#L353able-school-92027
07/03/2024, 6:58 PMwide-midnight-78598
07/03/2024, 7:00 PMwide-midnight-78598
07/03/2024, 7:00 PMable-school-92027
07/03/2024, 7:02 PMwide-midnight-78598
07/03/2024, 7:02 PMwide-midnight-78598
07/03/2024, 7:03 PMable-school-92027
07/03/2024, 7:10 PMshunit2
, so I guess my question is: if I specify a different shunit2 version, pants would download the newer version or use an already downloaded shunit2
if present on the cache?
I mean, I could change my tool publishing to append the version to the zip file just to be sure it will not cause any problems, but I was just wondering if pants is already handling that.wide-midnight-78598
07/03/2024, 7:22 PMable-school-92027
07/03/2024, 7:22 PMwide-midnight-78598
07/03/2024, 7:23 PMwide-midnight-78598
07/03/2024, 7:23 PMbroad-processor-92400
07/03/2024, 10:19 PM