File tree 5 files changed +19
-18
lines changed
5 files changed +19
-18
lines changed Original file line number Diff line number Diff line change 1
1
build_root_image :
2
- name : boilerplate
3
2
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 8
8
schedule :
9
9
interval : " weekly"
10
10
ignore :
11
- - dependency-name : " app-sre/boilerplate"
12
- # don't upgrade boilerplate via these means
13
11
- dependency-name : " openshift4/ose-operator-registry"
14
12
# don't upgrade ose-operator-registry via these means
Original file line number Diff line number Diff line change 29
29
go-mod-update :
30
30
go mod vendor
31
31
32
+ .PHONY : ensure-golangci
33
+ ensure-golangci :
34
+ ./ci/golangci-lint.sh
35
+
32
36
GOOS ?= linux
33
37
GOENV=GOOS =${GOOS} GOARCH=${GOARCH} CGO_ENABLED=1 ${FIPSENV}
34
38
GOBUILDFLAGS=-gcflags="all=-trimpath =${GOPATH}" -asmflags="all=-trimpath=${GOPATH}"
@@ -41,7 +45,7 @@ go-build: go-mod-update
41
45
GOLANGCI_OPTIONAL_CONFIG = .golangci.yml
42
46
GOLANGCI_LINT_CACHE =/tmp/golangci-cache
43
47
.PHONY : lint
44
- lint : go-mod-update
48
+ lint : go-mod-update ensure-golangci
45
49
@echo " ## Running the golangci-lint tool..."
46
50
GOLANGCI_LINT_CACHE=${GOLANGCI_LINT_CACHE} golangci-lint run -c ${GOLANGCI_OPTIONAL_CONFIG} ./...
47
51
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