Skip to content

Commit 292821d

Browse files
authored
README.md: Fix .bazelversion location
The Python and Go implementations both look for `.bazelversion` only in the workspace root.
1 parent 88d3724 commit 292821d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The documentation below describes the newer Go version only.
4444
It uses a simple algorithm:
4545
- If the environment variable `USE_BAZEL_VERSION` is set, it will use the version specified in the value.
4646
- Otherwise, if a `.bazeliskrc` file exists in the workspace root and contains the `USE_BAZEL_VERSION` variable, this version will be used.
47-
- Otherwise, if a `.bazelversion` file exists in the current directory or recursively any parent directory, it will read the file and use the version specified in it.
47+
- Otherwise, if a `.bazelversion` file exists in the workspace root, it will read the file and use the version specified in it.
4848
- Otherwise, if the environment variable `USE_BAZEL_FALLBACK_VERSION` is set to one of the following formats:
4949
- If set to a value starting with `error:`, it will report an error and version detection will fail.
5050
- If set to a value starting with `warn:`, it will report a warning and use the version specified after the prefix.

0 commit comments

Comments
 (0)