Commit 034e59c
internal/analysis/analyzerutil: fix FileUsesGoVersion
This CL fixes a logic error in FileUsesGoVersion's
bootstrap check (wrong operand order).
Also, it excludes _test.go files
from consideration of the bootstrap minimum version.
This unbreaks TestVetStdlib; see CL 718503.
Change-Id: I7101216567ecfb6ad01e420fa31be661aa302d57
Reviewed-on: https://go-review.googlesource.com/c/tools/+/720000
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
Auto-Submit: Dmitri Shuralyov <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>1 parent 076bd80 commit 034e59c
1 file changed
+11
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | | - | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
0 commit comments