File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1+ # Ensure Windows uses proper line endings
2+ * .go text eol =lf
Original file line number Diff line number Diff line change 1616 strategy :
1717 matrix :
1818 go : [stable]
19- # disable windows-latest for now
20- os : [ubuntu-latest, macos-latest]
19+ os : [ubuntu-latest, macos-latest, windows-latest]
2120 name : lint
2221 runs-on : ${{ matrix.os }}
2322 steps :
2827 - name : golangci-lint
2928 uses : golangci/golangci-lint-action@v6
3029 with :
31- version : v1.60
30+ version : v1.62
3231 - name : run CI
33- run : make ci
32+ run : make ci
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
1111 "os"
1212 "os/exec"
1313 "reflect"
14+ "sort"
1415 "strings"
1516 "text/template"
1617 "unicode"
@@ -26,8 +27,8 @@ const (
2627// This file is autogenerated by "go generate .". Do not modify.
2728
2829import (
29- {{range .Imports}}
30- "{{.}}"{{end}}
30+ {{- range .Imports}}
31+ "{{.}}"{{end}}
3132)
3233
3334{{$mapKeyTypes := .MapKeysTypes}}
@@ -538,6 +539,7 @@ func main() {
538539 for _ , value := range values {
539540 imports = append (imports , value .Import ... )
540541 }
542+ sort .Strings (imports )
541543
542544 baseT := template .New ("genvalues" ).Funcs (template.FuncMap {
543545 "Lower" : strings .ToLower ,
You can’t perform that action at this time.
0 commit comments