Hi team, sometimes I got the following error while...
# general
w
Hi team, sometimes I got the following error while using pants binary. In the pants.toml I have put
pants_version = "2.10.0+gitb27a00dd"
.
Copy code
BuildConfigurationError: Version mismatch: Requested version was 2.10.0, our version is 2.10.0+gitb27a00dd.
h
Hm, is it deterministic?
w
it seems depends on the env/host/os.
h
And things fail but both if you say
2.10.0
and
2.1.0.0+gitb27a00dd
? There's no way to fix it?
w
In OSX, it seems I have to put
pants_version = "2.10.0+gitb27a00dd"
. Otherwise, I would get that eror. while it does not always work in Unix.
h
Weird - are you using PANTS_SHA?
w
For example, if I run it in our gpu agents for jenkins, it does not like
"2.10.0+gitb27a00dd"
. It requires ‘2.10.0’ while OSX does not like it.
h
I wonder if you're using PANTS_SHA locally, but not in CI perhaps? Hence the inconsistency
w
I dont think so. I am not aware of PANTS_SHA 😞
h
How are you installing Pants? I'm surprised Git is being used on macOS
w
download pants binary
then just ./pants --version
h
And that is for both CI and local macOS?
w
yes
👍 1
What is expected? Are we expected to put git-sha together with the pants version in pants.toml?
h
It's plausible there's a bug in pants.pex -- it should be claiming the VERSION to be 2.10.0! No git included Can you please open a bug report? I can't run pants.pex on my mac because I have an M1, but I could try running on a Linux devbox or another contributor look into it
w
ok I will open one. @curved-electrician-64177 FYI
👍 1
❤️ 1
h
To help with priorities: to clarify, is there any workaround? And to clarify, this is not flaky - it's reproducible?
w
i guess, if we are expected to put VERSION only, then it should be easily reproduced by just downloading pants.pex then run it.
h
right, which is why I'm confused why this is only sometimes causing the build to fail
(gtg to doctor soon so can't investigate this personally yet)
🙏 1
w
another thought, given I am using pants.pex, maybe I dont need to put pants_version in toml?
h
worth trying - I have more doctor's visits today so no promises, but I'm hoping to get to this bug today