File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
SOURCE_FILES? =./...
2
2
GOLANGCI_VERSION =v2.1.6 # Also update golangci-lint GH action in pr.yml when updating this version
3
3
4
- GOIMPORTS_VERSION =v0.21.0
5
- COVERAGE =coverage.out
6
-
7
4
export GO111MODULE := on
8
5
export PATH := ./bin:$(PATH )
9
6
20
17
21
18
.PHONY : test
22
19
test :
23
- go test $(SOURCE_FILES ) -coverprofile $( COVERAGE ) - timeout=30s -parallel=4 -cover -race
20
+ go test $(SOURCE_FILES ) -timeout=30s -parallel=4 -race
24
21
25
22
.PHONY : test-examples
26
23
test-examples :
@@ -48,7 +45,7 @@ install-golangci-lint:
48
45
49
46
.PHONY : install-goimports
50
47
install-goimports :
51
- go install golang.org/x/tools/cmd/goimports@$( GOIMPORTS_VERSION )
48
+ go install golang.org/x/tools/cmd/goimports@latest
52
49
53
50
.PHONY : tools
54
51
tools : install-golangci-lint install-goimports
Original file line number Diff line number Diff line change @@ -21,3 +21,5 @@ npm exec -c "replace-in-file '/$OLD_PACKAGE/g' '$NEW_PACKAGE' $VERSION_UPDATE_PA
21
21
echo " Add preview version to examples go.mod"
22
22
(cd " $examples_path " && go get $NEW_PACKAGE )
23
23
24
+ # Fix import order issues
25
+ goimports -w .
You can’t perform that action at this time.
0 commit comments