quick-translator-54728
08/25/2021, 2:22 PMhundreds-father-404
08/25/2021, 2:26 PM./pants --version
?quick-translator-54728
08/25/2021, 2:36 PMhundreds-father-404
08/25/2021, 2:45 PM,/pants export
directly rather than using the IntelliJ plugin to run it? I'm curious if this is an issue with how the plugin is invoking things, or pants export never is working for youquick-translator-54728
08/25/2021, 2:47 PM./pants --version
in the repo that i’m having a problem with, I gethundreds-father-404
08/25/2021, 2:48 PMcurl -L -o ./pants <https://static.pantsbuild.org/setup/pants|https://static.pantsbuild.org/setup/pants>
quick-translator-54728
08/25/2021, 2:49 PMhundreds-father-404
08/25/2021, 2:51 PMgit status
, does it show changes made to ./pants
?hundreds-father-404
08/25/2021, 2:51 PMquick-translator-54728
08/25/2021, 2:54 PMquick-translator-54728
08/25/2021, 2:54 PMhundreds-father-404
08/25/2021, 2:54 PMpants.toml
changed?quick-translator-54728
08/25/2021, 2:54 PMhundreds-father-404
08/25/2021, 2:54 PMgit show
will tell you)quick-translator-54728
08/25/2021, 2:56 PMwitty-crayon-22786
08/25/2021, 4:06 PMpants
script after running the curl command that Eric gave you?quick-translator-54728
08/25/2021, 4:14 PMwitty-crayon-22786
08/25/2021, 4:17 PM./pants --version
with pants 1.27 now?quick-translator-54728
08/25/2021, 4:23 PMquick-translator-54728
08/25/2021, 4:23 PMhundreds-father-404
08/25/2021, 4:25 PMwitty-crayon-22786
08/25/2021, 4:25 PMpants
script… this is plugin resolution after pants has already loaded.quick-translator-54728
08/25/2021, 4:26 PMquick-translator-54728
08/25/2021, 4:51 PMhundreds-father-404
08/25/2021, 4:56 PMquick-translator-54728
08/25/2021, 4:56 PMhundreds-father-404
08/25/2021, 5:12 PMpantsbuild.pants.contrib.scrooge
. The issue is not IntelliJ, nor the ./pants
bash script. Now to figure out why that does not work!
What is your [GLOBAL]
section for your original, unmodified pants.toml?quick-translator-54728
08/25/2021, 5:20 PMhundreds-father-404
08/25/2021, 5:22 PMplugins
sectionquick-translator-54728
08/25/2021, 5:58 PMquick-translator-54728
08/25/2021, 5:59 PMhundreds-father-404
08/25/2021, 6:01 PMquick-translator-54728
08/25/2021, 6:18 PMhundreds-father-404
08/25/2021, 6:22 PMgit blame
on that linequick-translator-54728
08/25/2021, 7:19 PMquick-translator-54728
08/26/2021, 4:19 PMquick-translator-54728
08/26/2021, 4:20 PMhundreds-father-404
08/26/2021, 4:33 PMhundreds-father-404
08/26/2021, 4:33 PMcold-journalist-66984
08/26/2021, 6:03 PMhundreds-father-404
08/26/2021, 8:23 PMpantsbuild.pants-1.26.0-cp36-abi3-macosx_10_11_x86_64.whl
and pantsbuild.pants-1.26.0-cp36-abi3-manylinux1_x86_64.whl
, which should work with any Python 3.6+ on macOS 10.11 or newer. It's also weird that Pants is installable when downloaded via the ./pants
bash script, only not when via the plugin systemhundreds-father-404
08/26/2021, 8:25 PMquick-translator-54728
08/26/2021, 8:28 PMhundreds-father-404
08/26/2021, 8:32 PMquick-translator-54728
08/26/2021, 8:35 PMquick-translator-54728
08/26/2021, 8:35 PMhundreds-father-404
08/26/2021, 8:37 PMpython3.6
in the stacktrace, which is valid
Hm another wildcard. What if you try using Pants 1.30.4? I think we may have improved the plugin resolution and I'm curious if it makes a differencecold-journalist-66984
08/26/2021, 8:42 PMcold-journalist-66984
08/26/2021, 8:43 PMhundreds-father-404
08/26/2021, 8:44 PMquick-translator-54728
08/26/2021, 8:44 PMhundreds-father-404
08/26/2021, 8:45 PMpants_version
to 1.30.4
in pants.toml
, then run ./pants --version
. However, to catch deprecation warnings, it can be helpful to jump one version at a time like 1.26 to 1.27 and so on. See https://www.pantsbuild.org/docs/upgrade-tipshundreds-father-404
08/26/2021, 8:46 PMquick-translator-54728
08/26/2021, 8:47 PMquick-translator-54728
08/26/2021, 8:49 PMcold-journalist-66984
08/26/2021, 8:50 PMhundreds-father-404
08/26/2021, 8:50 PMhundreds-father-404
08/26/2021, 8:50 PMI think we do use scroogeYeah it looks like your org uses it. I'm wondering if Kati in particular will need it, or if it's only a portion of the codebase that uses it and Kati won't touch that part of the project But irrelevant if upgrading Pants can be a solution
quick-translator-54728
08/26/2021, 8:52 PMquick-translator-54728
08/26/2021, 8:52 PMhundreds-father-404
08/26/2021, 8:53 PMcold-journalist-66984
08/26/2021, 8:53 PMcold-journalist-66984
08/26/2021, 8:55 PMhundreds-father-404
08/26/2021, 8:55 PMcold-journalist-66984
08/26/2021, 8:56 PMcold-journalist-66984
08/26/2021, 8:57 PMcold-journalist-66984
08/26/2021, 8:58 PMhundreds-father-404
08/26/2021, 8:58 PMpantsbuild.pants.contrib.scrooge
. Under the hood, Pex is using pipcold-journalist-66984
08/26/2021, 8:59 PMcold-journalist-66984
08/26/2021, 8:59 PMhundreds-father-404
08/26/2021, 8:59 PMcold-journalist-66984
08/26/2021, 9:03 PMhundreds-father-404
08/26/2021, 9:05 PMcold-journalist-66984
08/26/2021, 9:06 PMhundreds-father-404
08/26/2021, 9:08 PMcold-journalist-66984
08/26/2021, 9:09 PMenough-analyst-54434
08/26/2021, 9:13 PMquick-translator-54728
08/26/2021, 9:14 PM./pants --version
, but it doesn’t get rid of the intellij issuecold-journalist-66984
08/26/2021, 9:14 PMenough-analyst-54434
08/26/2021, 9:15 PMenough-analyst-54434
08/26/2021, 9:15 PMenough-analyst-54434
08/26/2021, 9:18 PMenough-analyst-54434
08/26/2021, 9:23 PMpython3,6 -mvenv pex-test.venv
pex-test.venv/bin/pip install pex==2.1.7
pex-test.venv/bin/pex pantsbuild.pants.contrib.scrooge==1.26.0 -oplugin.pex
That will confirm this is a Pex error. We can drill from there to see if this is solvable. I expect Eric was right though about too new macOS not working with this old a Pex.quick-translator-54728
08/26/2021, 9:26 PMenough-analyst-54434
08/26/2021, 9:31 PMpex-test/bin/pip install pip==20.0.1
pex-test/bin/pip debug -v
We have just the 1 macos wheel on PyPI: https://files.pythonhosted.org/packages/6c/16/1798b61dfc07ea474adbd3eb64183bcd18d4040961[…]pantsbuild.pants-1.26.0-cp36-abi3-macosx_10_11_x86_64.whl and that wheel tag needs to be in the list you'll see in the pip debug output. Presumably its not.enough-analyst-54434
08/26/2021, 9:35 PMcp36-abi3-macosx_10_11_x86_64
must be in the list generated by pip debug -v
.enough-analyst-54434
08/26/2021, 9:36 PMpex-test/bin/pip install pip==20.0.1
pex-test/bin/pip install pantsbuild.pants==1.26.0
That should fail.enough-analyst-54434
08/26/2021, 9:41 PM[pants-repos] repos
list. We can work through this though with a local example 1st to make sure it works for you before going down the road. If it's hard to socialize a Pants upgrade I assume its also hard to get ops to prop up a custom web server and let you add a file to it?enough-analyst-54434
08/26/2021, 9:42 PMcold-journalist-66984
08/27/2021, 1:57 AMI assume its also hard to get ops to prop up a custom web server and let you add a file to it?It depends. We could certainly put it in a s3 bucket. If we need a custom web server that might be ok. The big thing is the impact to other devs would be minimal, but historically upgrading pants has been a huge effort here.
hundreds-father-404
08/27/2021, 1:58 AMbut historically upgrading pants has been a huge effort here.Hm, what have been the pain points?
cold-journalist-66984
08/27/2021, 2:04 AMhundreds-father-404
08/27/2021, 2:04 AMcold-journalist-66984
08/27/2021, 2:07 AMcold-journalist-66984
08/27/2021, 2:08 AMcold-journalist-66984
08/27/2021, 2:09 AMhundreds-father-404
08/27/2021, 2:10 AMcold-journalist-66984
08/27/2021, 2:37 AMhundreds-father-404
08/27/2021, 2:38 AMcold-journalist-66984
08/27/2021, 4:33 AMquick-translator-54728
08/27/2021, 5:25 PMenough-analyst-54434
08/27/2021, 5:33 PMpython3.6 -mvenv pex-test.venv
pex-test.venv/bin/pip install pex==2.1.7
pex-test.venv/bin/pex pantsbuild.pants.contrib.scrooge==1.26.0 -oplugin.pex
enough-analyst-54434
08/27/2021, 5:34 PMquick-translator-54728
08/27/2021, 5:35 PMquick-translator-54728
08/27/2021, 5:35 PMquick-translator-54728
08/27/2021, 5:37 PMpex-test.venv/bin/pip
vs pex-test/bin/pip
?enough-analyst-54434
08/27/2021, 5:48 PMquick-translator-54728
08/27/2021, 5:58 PMquick-translator-54728
08/27/2021, 5:59 PMenough-analyst-54434
08/27/2021, 6:44 PMenough-analyst-54434
08/27/2021, 6:44 PMcold-journalist-66984
08/27/2021, 7:04 PMquick-translator-54728
08/27/2021, 7:29 PMenough-analyst-54434
08/31/2021, 10:58 PMquick-translator-54728
09/01/2021, 4:55 PM