Closed huonw closed 2 years ago
Thanks for merging. Based on your comment about adding new subcommands in future, I was prompted to think about versioning for scripts, and thus opened https://github.com/pantsbuild/setup/pull/129.
Ah, and I discovered a small bug: https://github.com/pantsbuild/setup/pull/130
This adds functionality that can introspect the bootstrapping process, similar to
PEX_TOOLS=1 ./some.pex ...
being able to introspect a PEX file.The motivating tool, added here, is
PANTS_BOOTSTRAP_TOOLS=1 ./pants bootstrap-cache-key
that prints a somewhat opaque string designed to be used as a key for CI caching systems. This is designed to help with https://github.com/pantsbuild/actions/issues/5, and is prompted by the discussion in https://github.com/pantsbuild/actions/pull/6#discussion_r978745702.For example, on my system:
(This PR is a quick sketch, please lemme know if it doesn't make sense!)