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

loud-stone-83419

08/18/2021, 9:26 PM
Hi! Do we have an example of pants2 and pants1 setup side by side?
w

witty-crayon-22786

08/18/2021, 9:30 PM
it looks like we had a page until version
2.4.x
: https://www.pantsbuild.org/v2.4/docs/how-to-upgrade-pants-2-0
i don’t actually know which version of 2.x i would recommend targeting.
but most likely the general advice to “validate but not necessarily ship” each minor version of pants (to get deprecations) probably applies (https://www.pantsbuild.org/docs/upgrade-tips)
l

loud-stone-83419

08/18/2021, 9:36 PM
thx
w

witty-crayon-22786

08/18/2021, 9:37 PM
sure thing: let me know if you have other questions!
1
h

happy-kitchen-89482

08/19/2021, 3:13 AM
The main thing would probably be to tell pants2 to use a
pants2.toml
as its config (via env var, or flag), and then in that config tell pants2 to use BUILD2, say, as the buildfile name
then you avoid collisions on config and metadata