Pants 2.16.0.dev1 is released: + <https://groups.g...
# announce
c
Got an issue using the built wheel…
Copy code
BuildConfigurationError: Version mismatch: Requested version was 2.16.0.dev1, our version is 2.16.0.dev1+git57fecb6c.
on M1
p
same error on linux.
Copy code
asher@ip-10-1-201-65 ~/projects/toolchain (pants2.16)$ git diff HEAD^
diff --git a/pants.toml b/pants.toml
index 198ab48c0..f745eae27 100644
--- a/pants.toml
+++ b/pants.toml
@@ -1,5 +1,5 @@
 [GLOBAL]
-pants_version = "2.16.0.dev0"
+pants_version = "2.16.0.dev1"
 print_stacktrace = true

 pantsd_invalidation_globs.add = [
asher@ip-10-1-201-65 ~/projects/toolchain (pants2.16)$ ./pants --version
14:59:49.63 [ERROR] 1 Exception encountered:

Engine traceback:
  in select
    ..
  in pants.core.util_rules.environments.determine_local_environment
    ..
  in pants.core.util_rules.environments.determine_all_environments
    ..
  in construct_scope_environments_preview
    ..
  in pants.engine.internals.options_parsing.scope_options
    ..
  in pants.engine.internals.options_parsing.parse_options
    ..

Traceback (most recent call last):
  File "/data/home/asher/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0.dev1_py39/lib/python3.9/site-packages/pants/engine/internals/options_parsing.py", line 49, in parse_options
    return _Options(options_bootstrapper, build_config, union_membership)
  File "<string>", line 6, in __init__
  File "/data/home/asher/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0.dev1_py39/lib/python3.9/site-packages/pants/engine/internals/options_parsing.py", line 33, in __post_init__
    assert self.options is not None
  File "/data/home/asher/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0.dev1_py39/lib/python3.9/site-packages/pants/util/memo.py", line 123, in memoize
    result = func(*args, **kwargs)
  File "/data/home/asher/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0.dev1_py39/lib/python3.9/site-packages/pants/engine/internals/options_parsing.py", line 37, in options
    return self.options_bootstrapper.full_options(self.build_config, self.union_membership)
  File "/data/home/asher/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0.dev1_py39/lib/python3.9/site-packages/pants/option/options_bootstrapper.py", line 287, in full_options
    raise BuildConfigurationError(
pants.base.exceptions.BuildConfigurationError: Version mismatch: Requested version was 2.16.0.dev1, our version is 2.16.0.dev1+git57fecb6c.
e
I just ran the release script and I won't be around the next few days. Hopefully someone has a clue what has transpired? Does dev0 work? If so that cuts the search space.
p
dev0 works.
(we are using it internally on a dedicated branch)
e
Ok, thanks. FWICT the most likely candidate is the src/python/pants/VERSION re-jigger, which I still don't understand the motivation for - that happened after dev0, before dev1. I'll try to find some time to confirm this hunch.
h
Yeah, almost certainly that…
cc @bitter-ability-32190
b
The fun never stops
e
b
The PR in question didn't change how version bumping is handled. Nor should it have, so I'm perplexed.
Ah John has it
e
I am not around technically today, but will get to this Wednesday if no-one else has.
b
I'll take a stab at it later today if no one else assigns it to themselves
How could I repro locally? Run the release script to build wheels locally?
h
That goddamn VERSION file never ceases to kill us
🔫 1
🔪 1
⚰️ 1
h
I would expect
reversion.py
script to be relevant here
b
That PR adjusts an invocation of a function in that file
🚬 1
w
Curious if there's a plan to release a dev2 version?
h
yeah, planning to do today 🙂
💯 2