fix?
This commit is contained in:
parent
ebced17206
commit
2297c73651
|
|
@ -9,12 +9,6 @@ shared_configs:
|
||||||
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
|
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
|
||||||
version: 2.1
|
version: 2.1
|
||||||
jobs:
|
jobs:
|
||||||
build-1-21:
|
|
||||||
working_directory: ~/repo
|
|
||||||
docker:
|
|
||||||
- image: cimg/go:1.21
|
|
||||||
steps: *simple_job_steps
|
|
||||||
|
|
||||||
build-1-22:
|
build-1-22:
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
docker:
|
docker:
|
||||||
|
|
@ -25,6 +19,12 @@ jobs:
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/go:1.23
|
- image: cimg/go:1.23
|
||||||
|
steps: *simple_job_steps
|
||||||
|
|
||||||
|
build-1-24:
|
||||||
|
working_directory: ~/repo
|
||||||
|
docker:
|
||||||
|
- image: cimg/go:1.24
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
|
|
@ -35,6 +35,6 @@ jobs:
|
||||||
workflows:
|
workflows:
|
||||||
pr-build-test:
|
pr-build-test:
|
||||||
jobs:
|
jobs:
|
||||||
- build-1-21
|
|
||||||
- build-1-22
|
- build-1-22
|
||||||
- build-1-23
|
- build-1-23
|
||||||
|
- build-1-24
|
||||||
|
|
|
||||||
13
Makefile
13
Makefile
|
|
@ -50,9 +50,9 @@ generate: .tmp/protoc/bin/protoc
|
||||||
|
|
||||||
.PHONY: checkgenerate
|
.PHONY: checkgenerate
|
||||||
checkgenerate: generate
|
checkgenerate: generate
|
||||||
git status --porcelain
|
git status --porcelain -- '**/*.go'
|
||||||
@if [ -n "$$(git status --porcelain)" ]; then \
|
@if [ -n "$$(git status --porcelain -- '**/*.go')" ]; then \
|
||||||
git diff; \
|
git diff -- '**/*.go'; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -69,7 +69,7 @@ vet:
|
||||||
|
|
||||||
.PHONY: staticcheck
|
.PHONY: staticcheck
|
||||||
staticcheck:
|
staticcheck:
|
||||||
@go install honnef.co/go/tools/cmd/staticcheck@v0.5.1
|
@go install honnef.co/go/tools/cmd/staticcheck@2025.1.1
|
||||||
staticcheck -checks "inherit,-SA1019" ./...
|
staticcheck -checks "inherit,-SA1019" ./...
|
||||||
|
|
||||||
.PHONY: ineffassign
|
.PHONY: ineffassign
|
||||||
|
|
@ -79,7 +79,7 @@ ineffassign:
|
||||||
|
|
||||||
.PHONY: predeclared
|
.PHONY: predeclared
|
||||||
predeclared:
|
predeclared:
|
||||||
@go install github.com/nishanths/predeclared@245576f9a85c
|
@go install github.com/nishanths/predeclared@51e8c974458a0f93dc03fe356f91ae1a6d791e6f
|
||||||
predeclared ./...
|
predeclared ./...
|
||||||
|
|
||||||
# Intentionally omitted from CI, but target here for ad-hoc reports.
|
# Intentionally omitted from CI, but target here for ad-hoc reports.
|
||||||
|
|
@ -95,8 +95,7 @@ errcheck:
|
||||||
errcheck ./...
|
errcheck ./...
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test: deps
|
||||||
# The race detector requires CGO: https://github.com/golang/go/issues/6508
|
|
||||||
CGO_ENABLED=1 go test -race ./...
|
CGO_ENABLED=1 go test -race ./...
|
||||||
|
|
||||||
.tmp/protoc/bin/protoc: ./Makefile ./download_protoc.sh
|
.tmp/protoc/bin/protoc: ./Makefile ./download_protoc.sh
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue