Skip to content

Commit 4d3d60e

Browse files
author
Tony Zhang
committed
Fixing Makefile and misc golang toolchain
1 parent 1537bc3 commit 4d3d60e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# https://golangci-lint.run/usage/configuration/
22
run:
3-
go: "1.21.7"
3+
go: "1.23.6"
44
timeout: 10m
55

66
issues:
@@ -19,7 +19,7 @@ linters:
1919
- depguard
2020
- errcheck
2121
- errorlint
22-
- exportloopref
22+
- copyloopvar
2323
- goconst
2424
- gocritic
2525
- gofmt

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fmt: ## Run gofumpt against code.
3030
vet: ## Run go vet against code.
3131
go vet ./...
3232

33-
test: fmt vet envtest ## Run tests.
33+
test: fmt vet ## Run tests.
3434
go test -v ./... -coverprofile cover.out
3535

3636
lint: ## Run golangci-lint against code.
@@ -47,15 +47,15 @@ run: build ## Run avalanche CLI
4747

4848
colima: ## check colima
4949
ifndef COLIMA
50-
brew install colima
51-
brew install docker docker-compose
52-
brew install chipmk/tap/docker-mac-net-connect
53-
brew services start chipmk/tap/docker-mac-net-connect
50+
brew install colima
51+
brew install docker docker-compose
52+
brew install chipmk/tap/docker-mac-net-connect
53+
brew services start chipmk/tap/docker-mac-net-connect
5454
endif
5555

5656
docker: colima ## check docker
5757
ifndef DOCKER
58-
$(error "No docker in $(PATH), pls follow https://docs.docker.com/get-docker/ to install")
58+
$(error "No docker in $(PATH), pls follow https://docs.docker.com/get-docker/ to install")
5959
endif
6060

6161
docker-build: docker ## Build docker image

scripts/lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CLI_PATH=$(
1111
cd .. && pwd
1212
)
1313

14-
GOLANGCI_LINT_VERSION=v1.56.2
14+
GOLANGCI_LINT_VERSION=v1.64.5
1515

1616
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINT_VERSION}
1717
golangci-lint run --config=$CLI_PATH/.golangci.yml ./... --timeout 5m

0 commit comments

Comments
 (0)