https://pantsbuild.org/ logo
p

powerful-boots-1234

07/02/2021, 8:32 PM
If I want to test using a branch, is there something I use in my pants.toml? I want to test 0182de9814c7694eed2b9407e3577684db26ea2e on 2.6.x (poetry_requirements)
w

witty-crayon-22786

07/02/2021, 8:55 PM
p

powerful-boots-1234

07/03/2021, 9:17 AM
Thanks. Was able to use that to make https://github.com/pantsbuild/pants/issues/12272 🙂
Sorry to be a bother but is there a simple way to do this with a branch as well? https://github.com/pantsbuild/pants/issues/12272#issuecomment-873763505
@ehiggs with #12280 and the following diff in your example `multirepo-1`:
If I use
PANTS_SHA=256e4daa778be3cf1a61ddd2710ac29f7972a311 ./pants run ::
I get told:
Copy code
Looking in links: <https://binaries.pantsbuild.org/wheels/pantsbuild.pants/256e4daa778be3cf1a61ddd2710ac29f7972a311/2.6.0rc0%2Bgit256e4daa/index.html>
ERROR: Could not find a version that satisfies the requirement pantsbuild.pants==2.6.0rc0+git256e4daa (from versions: 0.0.17, 0.0.18, 0.0.20, 0.0.21, 0.0.22, 0.0.23, 0.0.24, 0.0.25, 0.0.26, 0.0.27, 0.0.28, 0.0.29, 0.0.30, 0.0.31, 0.0.32, 0.0.33, 0.0.34, 0.0.35, 0.0.36, 0.0.37, 0.0.38, 0.0.39, 0.0.40, 0.0.41, 0.0.42, 0.0.43, 0.0.44, 0.0.45, 0.0.46, 0.0.47, 0.0.48, 0.0.49, 0.0.50, 0.0.51, 0.0.52, 0.0.53, 0.0.54, 0.0.55, 0.0.56, 0.0.57, 0.0.58, 0.0.59, 0.0.60, 0.0.61, 0.0.62, 0.0.63, 0.0.64, 0.0.65, 0.0.66, 0.0.67, 0.0.68, 0.0.69, 0.0.70, 0.0.71, 0.0.72, 0.0.73, 0.0.74, 0.0.75, 0.0.76, 0.0.77, 0.0.79, 0.0.80, 0.0.81, 0.0.82, 1.0.0, 1.0.1, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.15.0, 1.16.0, 1.17.0, 1.18.0, 1.19.0, 1.20.0, 1.21.0, 1.22.0, 1.23.0, 1.24.0, 1.25.0, 1.26.0, 1.27.0, 1.28.0, 2.5.0.dev2, 2.5.0.dev3, 2.5.0rc0, 2.5.0rc1, 2.5.0rc2, 2.5.0rc3, 2.5.0, 2.5.1rc0, 2.5.1rc1, 2.5.1rc2, 2.5.1rc3, 2.5.1rc4, 2.6.0.dev0, 2.6.0.dev1, 2.6.0.dev2, 2.6.0rc0)
ERROR: No matching distribution found for pantsbuild.pants==2.6.0rc0+git256e4daa
h

happy-kitchen-89482

07/05/2021, 3:11 PM
IIRC those per-SHA releases are only built for commits merged into
main
(and possibly release branches), not PR branches.
What is the branch in question?
p

powerful-boots-1234

07/05/2021, 3:12 PM
h

happy-kitchen-89482

07/05/2021, 3:15 PM
Ah, fortunately that should get merged to main very soon, hopefully tomorrow. Sorry for the delay! Today is a holiday here.
p

powerful-boots-1234

07/05/2021, 3:21 PM
no worries. just trying to help test it before it's merged. 😉
h

happy-kitchen-89482

07/05/2021, 4:03 PM
Appreciate it! There is another way: if the pants repo is a sibling of the repo you're testing in then this script will run pants from the sources in
pants
on the sources in your repo: https://github.com/pantsbuild/example-python/blob/main/pants_from_sources
But first you'll wait 20 minutes for pants to build itself, and you may need to install the rust toolchain
(obviously you'll only wait those 20 minutes the first time)
e

enough-analyst-54434

07/05/2021, 8:08 PM
You can do exactly what I did: just clone that branch and run Pants via a relative path to that clone branch pants script (my ../../pants was doing that with my pants clone).
p

powerful-boots-1234

07/06/2021, 7:31 AM
run Pants via a relative path to that clone branch pants script
oh yeah that's a good idea. Thanks
3 Views