-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
* Update to go 1.24 * Fix lint version in CI. * Fix mockery * revert solana ci change * Swap deprecated linter
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ build: ensure_go_version | |
generate: ensure_go_version clean-generate proto-generate generate-mocks | ||
|
||
generate-mocks: ensure_go_version | ||
go install github.com/vektra/mockery/v2@v2.43.2 | ||
go install github.com/vektra/mockery/v2@v2.52.3 | ||
mockery | ||
|
||
# If you have a different version of protoc installed, you can use the following command to generate the protobuf files | ||
|
@@ -47,10 +47,10 @@ test: | |
go test -race -fullpath -shuffle on -count $(TEST_COUNT) -coverprofile=$(COVERAGE_FILE) \ | ||
`go list ./... | grep -Ev 'chainlink-ccip/internal/mocks|chainlink-ccip/mocks|chainlink-ccip/pkg/ocrtypecodec/v1/ocrtypecodecpb'` | ||
|
||
lint: ensure_go_version ensure_golangcilint_1_62_2 | ||
lint: ensure_go_version ensure_golangcilint | ||
golangci-lint run -c .golangci.yml | ||
|
||
lint-fix: ensure_go_version ensure_golangcilint_1_62_2 | ||
lint-fix: ensure_go_version ensure_golangcilint | ||
golangci-lint run -c .golangci.yml --fix | ||
|
||
checks: test lint | ||
|
@@ -67,13 +67,13 @@ install-protoc: | |
go install google.golang.org/protobuf/cmd/[email protected] | ||
|
||
install-golangcilint: | ||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.2 | ||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.5 | ||
|
||
ensure_go_version: | ||
@go version | grep -q 'go1.23' || (echo "Please use go1.23" && exit 1) | ||
@go version | grep -q 'go1.24' || (echo "Please use go1.24" && exit 1) | ||
|
||
ensure_golangcilint_1_62_2: | ||
@golangci-lint --version | grep -q '1.62.2' || (echo "Please use golangci-lint 1.62.2" && exit 1) | ||
ensure_golangcilint: | ||
@golangci-lint --version | grep -q '1.64.5' || (echo "Please use golangci-lint 1.64.5, make install-golangcilint" && exit 1) | ||
|
||
ensure_protoc_28_0: | ||
@$(PROTOC_BIN) --version | grep -q 'libprotoc 28.0' || (echo "Please use protoc 28.0, (make install-protoc)" && exit 1) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ run: | |
linters: | ||
enable: | ||
- exhaustive | ||
- exportloopref | ||
- copyloopvar | ||
- revive | ||
- goimports | ||
- gosec | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.