Skip to content

Commit

Permalink
README.md: Fix .bazelversion location
Browse files Browse the repository at this point in the history
The Python and Go implementations both look for `.bazelversion` only in the workspace root.
  • Loading branch information
claymation committed Aug 13, 2024
1 parent 4448ad1 commit f93a5db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The documentation below describes the newer Go version only.
It uses a simple algorithm:
- If the environment variable `USE_BAZEL_VERSION` is set, it will use the version specified in the value.
- Otherwise, if a `.bazeliskrc` file exists in the workspace root and contains the `USE_BAZEL_VERSION` variable, this version will be used.
- 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.
- Otherwise, if a `.bazelversion` file exists in the workspace root, it will read the file and use the version specified in it.
- Otherwise, if the environment variable `USE_BAZEL_FALLBACK_VERSION` is set to one of the following formats:
- If set to a value starting with `error:`, it will report an error and version detection will fail.
- If set to a value starting with `warn:`, it will report a warning and use the version specified after the prefix.
Expand Down

0 comments on commit f93a5db

Please sign in to comment.