Commit 5bdfbe2
committed
Stop attempting to read @@//:.python-version
The idea to read .python-version in the root module was problematic
for two reasons. For one thing, if there is a .python-version file in
the root module, but no BUILD or BUILD.bazel file on the top level, we
produce an error that we can't catch. This would be a breaking change,
requiring users to add a BUILD.bazel file. Also, if the user has a
.python-version file, and also sets is_default on a toolchain, we
would fail the build (or, if we didn't, we'd change the default Python
version against the users explicit instructions). That would also be a
breaking change.
Removing the @@//:.python-version logic means the user needs to opt in
by saying python_version_file="@@//.python-version". That's not
necessarily a bad thing, as being explicit allows anyone to grep the
repo for the label and find out what cares about that file (as pointed
out by @fmeum on Slack; good point).1 parent 1a94ad4 commit 5bdfbe2
2 files changed
Lines changed: 1 addition & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | 121 | | |
129 | 122 | | |
130 | 123 | | |
| |||
156 | 149 | | |
157 | 150 | | |
158 | 151 | | |
159 | | - | |
160 | | - | |
| 152 | + | |
161 | 153 | | |
162 | 154 | | |
163 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | 367 | | |
395 | 368 | | |
396 | 369 | | |
| |||
0 commit comments