Commit ef06820
committed
chore: use python.defaults to set rules_python default python version
python.defaults is the modern way to set the default.
Setting it this way also helps avoid a bug where if a root module
has a single `python.toolchain()` call (which are implicitly treated
as `is_default=True`) and also sets the default using
`python.defaults()`, some validation logic gives an error about using
both ways to set a default.1 parent 726ffa2 commit ef06820
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | | - | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
0 commit comments