File tree Expand file tree Collapse file tree 5 files changed +19
-18
lines changed
Expand file tree Collapse file tree 5 files changed +19
-18
lines changed Original file line number Diff line number Diff line change 11build_root_image :
2- name : boilerplate
32 namespace : openshift
4- tag : image-v5.0.1
3+ name : release
4+ tag : rhel-8-release-golang-1.22-openshift-4.17
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 88 schedule :
99 interval : " weekly"
1010 ignore :
11- - dependency-name : " app-sre/boilerplate"
12- # don't upgrade boilerplate via these means
1311 - dependency-name : " openshift4/ose-operator-registry"
1412 # don't upgrade ose-operator-registry via these means
Original file line number Diff line number Diff line change 2929go-mod-update :
3030 go mod vendor
3131
32+ .PHONY : ensure-golangci
33+ ensure-golangci :
34+ ./ci/golangci-lint.sh
35+
3236GOOS ?= linux
3337GOENV=GOOS =${GOOS} GOARCH=${GOARCH} CGO_ENABLED=1 ${FIPSENV}
3438GOBUILDFLAGS=-gcflags="all=-trimpath =${GOPATH}" -asmflags="all=-trimpath=${GOPATH}"
@@ -41,7 +45,7 @@ go-build: go-mod-update
4145GOLANGCI_OPTIONAL_CONFIG = .golangci.yml
4246GOLANGCI_LINT_CACHE =/tmp/golangci-cache
4347.PHONY : lint
44- lint : go-mod-update
48+ lint : go-mod-update ensure-golangci
4549 @echo " ## Running the golangci-lint tool..."
4650 GOLANGCI_LINT_CACHE=${GOLANGCI_LINT_CACHE} golangci-lint run -c ${GOLANGCI_OPTIONAL_CONFIG} ./...
4751
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -ex
4+
5+ if [ -z " ${GOPATH:- } " ]; then
6+ eval " $( go env | grep GOPATH) "
7+ fi
8+
9+ export BINARY=bin/golangci-lint
10+ if [ ! -f " $BINARY " ]; then
11+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $( go env GOPATH) /bin v1.64.7
12+ fi
You can’t perform that action at this time.
0 commit comments