Hey, is there a way to provide the Git python pack...
# general
b
Hey, is there a way to provide the Git python package as dependency to use it in rules? I want to generate a version for a python package, based on Git magic, but I dont get Git installed as dependency to use it in rules. 🤔
w
that is slightly challenging to do safely: https://github.com/pantsbuild/pants/issues/13724 is a ticket for supporting it
it is possible to use thirdparty dependencies from
@rules
by adding them to your
plugins=
list in
pants.toml
. but you’d have to mark the rules that use git
@_uncacheable_rule
or, mark their return types
EngineAware.cacheable = False
b
Uh, that works! Thank you very much!
w
great! if you have a moment, mentioning on the issue what you are using
git
for in this context would be helpful… we need to decide there how much to expose.