Skip to content

Add .bazelversion - #2066

Merged
linzhp merged 1 commit into
bazelbuild:masterfrom
laurynaslubys:add_bazelversion
May 9, 2022
Merged

Add .bazelversion#2066
linzhp merged 1 commit into
bazelbuild:masterfrom
laurynaslubys:add_bazelversion

Conversation

@laurynaslubys

Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

The repository is built using whatever version of bazel I have in my path. Unfortunately, it doesn't seem to work with bazel 5.1.0.

Issue Number: N/A

What is the new behavior?

Add a .bazelversion so that bazelisk knows that the repo is supposed to be built using 4.0.0, as that is the version that is used in CI.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@google-cla

google-cla Bot commented Apr 23, 2022

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

For more information, open the CLA check for this pull request.

@linzhp linzhp left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tried other 4.x versions like 4.2.1?

@laurynaslubys

Copy link
Copy Markdown
Contributor Author

IIRC, it works, but CI is currently using 4.0.0, so it would be nice to keep this in sync.

@linzhp
linzhp merged commit 499bfbb into bazelbuild:master May 9, 2022
St0rmingBr4in pushed a commit to St0rmingBr4in/rules_docker that referenced this pull request Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants