Commit 58d6a56
Improve lint target to check and fix Go version mismatches
- Add version checking logic to detect golangci-lint Go version compatibility
- Automatically reinstall golangci-lint with correct Go version if mismatch detected
- Use GOTOOLCHAIN to ensure installation with project's required Go version
- Prevents future 'Go language version used to build golangci-lint is lower than targeted Go version' errors
Co-Authored-By: Alec Fong <alecsanf@usc.edu>1 parent a83ca1e commit 58d6a56
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
114 | 124 | | |
115 | 125 | | |
116 | 126 | | |
| |||
219 | 229 | | |
220 | 230 | | |
221 | 231 | | |
222 | | - | |
| 232 | + | |
0 commit comments