https://pantsbuild.org/ logo
#general
Title
# general
n

nice-france-74763

08/15/2021, 8:00 AM
Hey folks, is there a canonical way to set the version of pants I use in my CD pipelines? Presently I use the
PANTS_SHA
envvar but I'd like to target a semver range (eg,
^1.2.3
), is it possible?
c

curved-television-6568

08/15/2021, 9:46 AM
You put your pants version in pants.toml config file. See https://www.pantsbuild.org/ under “Installing Pants / Creating the launch script”
h

happy-kitchen-89482

08/15/2021, 4:47 PM
@nice-france-74763 Yeah the canonical way would be to set it in pants.toml. Granted that fixes a specific version, not a range. Not sure how we'd do a range, or if we'd advise it.
n

nice-france-74763

08/17/2021, 6:53 AM
Thanks for the advice!