File tree 3 files changed +9
-6
lines changed
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 16
16
strategy :
17
17
matrix :
18
18
go : [stable]
19
- # disable windows-latest for now
20
- os : [ubuntu-latest, macos-latest]
19
+ os : [ubuntu-latest, macos-latest, windows-latest]
21
20
name : lint
22
21
runs-on : ${{ matrix.os }}
23
22
steps :
28
27
- name : golangci-lint
29
28
uses : golangci/golangci-lint-action@v6
30
29
with :
31
- version : v1.60
30
+ version : v1.62
32
31
- 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 (
11
11
"os"
12
12
"os/exec"
13
13
"reflect"
14
+ "sort"
14
15
"strings"
15
16
"text/template"
16
17
"unicode"
@@ -26,8 +27,8 @@ const (
26
27
// This file is autogenerated by "go generate .". Do not modify.
27
28
28
29
import (
29
- {{range .Imports}}
30
- "{{.}}"{{end}}
30
+ {{- range .Imports}}
31
+ "{{.}}"{{end}}
31
32
)
32
33
33
34
{{$mapKeyTypes := .MapKeysTypes}}
@@ -538,6 +539,7 @@ func main() {
538
539
for _ , value := range values {
539
540
imports = append (imports , value .Import ... )
540
541
}
542
+ sort .Strings (imports )
541
543
542
544
baseT := template .New ("genvalues" ).Funcs (template.FuncMap {
543
545
"Lower" : strings .ToLower ,
You can’t perform that action at this time.
0 commit comments