Skip to content

Commit 9661451

Browse files
committed
fix SDK preview linter issues
1 parent 6b12a4b commit 9661451

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
SOURCE_FILES?=./...
22
GOLANGCI_VERSION=v2.1.6 # Also update golangci-lint GH action in pr.yml when updating this version
33

4-
GOIMPORTS_VERSION=v0.21.0
5-
COVERAGE=coverage.out
6-
74
export GO111MODULE := on
85
export PATH := ./bin:$(PATH)
96

@@ -20,7 +17,7 @@ build:
2017

2118
.PHONY: test
2219
test:
23-
go test $(SOURCE_FILES) -coverprofile $(COVERAGE) -timeout=30s -parallel=4 -cover -race
20+
go test $(SOURCE_FILES) -timeout=30s -parallel=4 -race
2421

2522
.PHONY: test-examples
2623
test-examples:
@@ -48,7 +45,7 @@ install-golangci-lint:
4845

4946
.PHONY: install-goimports
5047
install-goimports:
51-
go install golang.org/x/tools/cmd/goimports@$(GOIMPORTS_VERSION)
48+
go install golang.org/x/tools/cmd/goimports@latest
5249

5350
.PHONY: tools
5451
tools: install-golangci-lint install-goimports

tools/releaser/scripts/preview-version.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ npm exec -c "replace-in-file '/$OLD_PACKAGE/g' '$NEW_PACKAGE' $VERSION_UPDATE_PA
2121
echo "Add preview version to examples go.mod"
2222
(cd "$examples_path" && go get $NEW_PACKAGE)
2323

24+
# Fix import order issues
25+
goimports -w .

0 commit comments

Comments
 (0)