Open dizzy57 opened 4 days ago
We should never silently fallback to the default interpreter if there no matching python toolchain registered for the given python_version
.
We should also make sure that specifying python_version without the patch should 3.10
work.
What happened?
I expect to get an error when
rules_py
can't find configured toolchain for the specified python version. I also expect examples to pin minor version (e.g."3.10"
) instead of full version("3.10.13"
) to accommodate for future patch version upgrades byrules_python
. (e.g. it can silently bump patch versions)Version
Development (host) and target OS/architectures:
Output of
bazel --version
: 7.0.2Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:HEAD
(v0.7.3+
)Language(s) and/or frameworks involved:
How to reproduce
Any other information?
Please note that silently switching to the default toolchain and specifying full version ("3.10.13") will result in poor user experience after
rules_python
bumps the default version for3.10
interpreter in MINOR_MAPPING