mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
build: regenerate scripts/golangci.yml if build.env was updated
In case build.env was updated, scripts/golangci.yml needs to be regenerated. It contains a reference to the build-tag that is used to identify the Ceph version to link against. Failing to update the scripts/golangci.yml configuration, may cause running tests fail. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
0d9548c815
commit
2f6fca0862
2
Makefile
2
Makefile
@ -106,7 +106,7 @@ mod-check: check-env
|
|||||||
@echo 'running: go mod verify'
|
@echo 'running: go mod verify'
|
||||||
@go mod verify && [ "$(shell sha512sum go.mod)" = "`sha512sum go.mod`" ] || ( echo "ERROR: go.mod was modified by 'go mod verify'" && false )
|
@go mod verify && [ "$(shell sha512sum go.mod)" = "`sha512sum go.mod`" ] || ( echo "ERROR: go.mod was modified by 'go mod verify'" && false )
|
||||||
|
|
||||||
scripts/golangci.yml: scripts/golangci.yml.in
|
scripts/golangci.yml: build.env scripts/golangci.yml.in
|
||||||
sed "s/@@CEPH_VERSION@@/$(CEPH_VERSION)/g" < scripts/golangci.yml.in > scripts/golangci.yml
|
sed "s/@@CEPH_VERSION@@/$(CEPH_VERSION)/g" < scripts/golangci.yml.in > scripts/golangci.yml
|
||||||
|
|
||||||
go-lint: scripts/golangci.yml
|
go-lint: scripts/golangci.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user