Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bazel 8.0.1 compiled from dist zip file reports version 8.0.0 #25049

Open
lamielle opened this issue Jan 23, 2025 · 3 comments
Open

Bazel 8.0.1 compiled from dist zip file reports version 8.0.0 #25049

lamielle opened this issue Jan 23, 2025 · 3 comments
Labels
team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug untriaged

Comments

@lamielle
Copy link

Description of the bug:

When I build the latest bazel 8.0.1 release using the -dist zip file, I noticed that bazel --version reports 8.0.0 rather than 8.0.1. I manually tweaked the module version in MODULE.bazel to be 8.0.1 instead of 8.0.0 and rebuilt and confirmed that the expected version was reported. Is bumping this version a step that was missed for this latest release? I see 8.0.0 in MODULE.bazel for both git tags 8.0.0 and 8.0.1.

Which category does this issue belong to?

CLI

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Download the bazel 8.0.1 dist zip file: https://github.com/bazelbuild/bazel/releases/download/8.0.1/bazel-8.0.1-dist.zip

Follow the "Build bazel from scratch (bootstrapping)" steps noted in the documentation: https://bazel.build/install/compile-source#bootstrap-bazel

After the build completes, run output/bazel --versionand note that the reported version is8.0.0`.

Which operating system are you running Bazel on?

Linux, Ubuntu 24.04

What is the output of bazel info release?

Extracting Bazel installation... Starting local Bazel server (8.0.0- (@non-git)) and connecting to it... release 8.0.0- (@non-git)

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

See above, where I describe reproduction steps.

What's the output of git remote get-url origin; git rev-parse HEAD ?

This is via the -dist zip file so this is not a git repository.

If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@lamielle
Copy link
Author

FWIW, I first noticed this on FreeBSD (and I do have 7.4.1 and 8.0.0/8.0.1 building on FreeBSD 13). However, since that's not an officially supported platform I made sure to reproduce this on Linux as well.

The FreeBSD build takes a number of patches to the sources to get a successful build so I didn't want to use that as the base for this report.

@meteorcloudy
Copy link
Member

Thanks for reporting. Unfortunately, there is no way to fix this retrospectively.

@iancha1992 I guess we should add a step to update the version number in MODULE.bazel file for minor/patch releases

@meteorcloudy
Copy link
Member

Let's start with 8.1.0

@meisterT meisterT added team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website and removed team-CLI Console UI labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug untriaged
Projects
None yet
Development

No branches or pull requests

6 participants