Hey trying to upgrade to pants `2.8.0` excited to ...
# general
c
Hey trying to upgrade to pants
2.8.0
excited to use the new features. Running into this issue when building any python target that depends on proto.
Copy code
Exception: Client error (404) downloading file grpc_python_plugin from <https://binaries.pantsbuild.org/bin/grpc_python_plugin/1.32.0/macos/grpc_python_plugin>
👀 1
Didn't see anything named like this on the bucket
h
Thanks for the report! What Pants version were you using before?
c
2.7.0
h
So that's pretty worrying
(note the missing x86_64 bit)
h
Oh:
Copy code
default_url_platform_mapping = {
        "macos_arm64": "macos",
        "macos_x86_64": "macos",
        "linux_arm64": "linux/arm64",
        "linux_x86_64": "linux/x86_64",
    }
h
So how did this ever work?
h
That's what I'm wondering..the git blame is 12367 from Pants 2.7
c
Adding
Copy code
[grpc-python-plugin]
url_platform_mapping='{"linux_arm64": "linux/arm64", "linux_x86_64": "linux/x86_64", "macos_arm64": "macos/arm65", "macos_x86_64": "macos/x86_64", }'
to my
pants.toml
file makes everything run correctly
h
Okay great, glad you are unblocked. But definitely we should fix. @happy-kitchen-89482 do you know how we go about getting a macOS arm64 binary? Do I need to build it on my M1? I think before we had it using the x86 binary and using Rosetta, although not ideal
h
https://github.com/pantsbuild/pants/pull/12367 shouldn't have broken anything
I'm still confused
h
h
@clean-night-52582 Can you verify that 2.8.1rc0 fixes this for you?
c
Yes the rc works for me
h
Without your pants.toml changes?
c
Yes pulled that out and it worked
❤️ 1
h
Excellent