https://pantsbuild.org/ logo
#development
Title
# development
f

fast-nail-55400

09/24/2022, 3:30 PM
The
chevron==0.14.0
entry in
requirements.txt
has the comment: Should only be used by build-support. What is the context for that comment? (I'd like to use a templating library in a rule in the Go backend and using a templating library that is already in the lockfile would be preferred.)
h

happy-kitchen-89482

09/24/2022, 3:48 PM
This is the PR that switched from pystache to chevron, started by @polite-garden-50641 and finished by @hundreds-father-404: https://github.com/pantsbuild/pants/pull/13528
Looks like Asher originally intended to leave it out of the main requirements.txt and Eric then moved it there but with that comment.
I think it’s just an attempt to minimize dep proliferation in the main pants binary?
Either way, if you need it, use it. It’s very lightweight and pure-python, so I don’t see it introducing any problems.
👍 1
f

fast-nail-55400

09/24/2022, 4:30 PM
I think it’s just an attempt to minimize dep proliferation in the main pants binary?
I believe so. Although having some templating solution available in rules should be fine in terms of dependencies.
strings.Template
in Python stdlib is woefully inadequate.
So will make use of it. Thanks!
h

hundreds-father-404

09/26/2022, 2:01 PM
I vaguely recalled at the time having issues with M1s. But probably that's solved now. This was early days I think, I was one of the first M1 users for Pants