@@ -113,8 +113,8 @@ e2e: ginkgo
113
113
.PHONY : release
114
114
export OPM_IMAGE_REPO ?= quay.io/operator-framework/opm
115
115
export IMAGE_TAG ?= $(OPM_VERSION )
116
- export MAJ_MIN_IMAGE_OR_EMPTY ? = $(call tagged-or-empty,$(shell echo $(OPM_VERSION ) | grep -Eo 'v[0-9]+\.[0-9]+') )
117
- export MAJ_IMAGE_OR_EMPTY ? = $(call tagged-or-empty,$(shell echo $(OPM_VERSION ) | grep -Eo 'v[0-9]+') )
116
+ export MAJ_MIN_IMAGE_OR_EMPTY : = $(call tagged-or-empty,$(shell echo $(OPM_VERSION ) | grep -Eo 'v[0-9]+\.[0-9]+') )
117
+ export MAJ_IMAGE_OR_EMPTY : = $(call tagged-or-empty,$(shell echo $(OPM_VERSION ) | grep -Eo 'v[0-9]+') )
118
118
# LATEST_TAG is the latest semver tag in HEAD. Used to deduce whether
119
119
# OPM_VERSION is the new latest tag, or a prior minor/patch tag, below.
120
120
# NOTE: this can only be relied upon if full git history is present.
@@ -124,11 +124,12 @@ LATEST_TAG := $(shell git tag -l | tr - \~ | sort -V | tr \~ - | tail -n1)
124
124
# is not a prerelase tag and == LATEST_TAG, otherwise the empty string.
125
125
# An empty string causes goreleaser to skip building the manifest image for latest,
126
126
# which we do not want when cutting a non-latest release (old minor/patch tag).
127
- export LATEST_IMAGE_OR_EMPTY ? = $(shell \
127
+ export LATEST_IMAGE_OR_EMPTY : = $(shell \
128
128
echo $(OPM_VERSION ) | grep -Eq '^v[0-9]+\.[0-9]+\.[0-9]+$$' \
129
129
&& [ "$(shell echo -e "$(OPM_VERSION ) \n$(LATEST_TAG ) " | sort -rV | head -n1) " == "$(OPM_VERSION ) " ] \
130
130
&& echo "$(OPM_IMAGE_REPO ) :latest" || echo "")
131
- release : RELEASE_ARGS ?= release --rm-dist --snapshot -f release/goreleaser.$(shell go env GOOS) .yaml
131
+ RELEASE_GOOS := $(shell go env GOOS)
132
+ release : RELEASE_ARGS ?= release --rm-dist --snapshot -f release/goreleaser.$(RELEASE_GOOS ) .yaml
132
133
release : goreleaser
133
134
$(GORELEASER ) $(RELEASE_ARGS )
134
135
@@ -147,22 +148,22 @@ endef
147
148
# Hack / Tools #
148
149
# ###############
149
150
150
- GO_INSTALL_OPTS ? = "-mod=mod"
151
+ GO_INSTALL_OPTS : = "-mod=mod"
151
152
152
153
# # Location to install dependencies to
153
- LOCALBIN ? = $(shell pwd) /bin
154
+ LOCALBIN : = $(shell pwd) /bin
154
155
$(LOCALBIN ) :
155
156
mkdir -p $(LOCALBIN )
156
157
157
158
# # Tool Binaries
158
- GORELEASER ? = $(LOCALBIN ) /goreleaser
159
- GINKGO ? = $(LOCALBIN ) /ginkgo
160
- PROTOC_VERSION ? = $(LOCALBIN ) /protoc-gen-go-grpc
159
+ GORELEASER : = $(LOCALBIN ) /goreleaser
160
+ GINKGO : = $(LOCALBIN ) /ginkgo
161
+ PROTOC_VERSION : = $(LOCALBIN ) /protoc-gen-go-grpc
161
162
162
163
# # Tool Versions
163
- GORELEASER_VERSION ? = v1.8.3
164
- GINKGO_VERSION ? = v2.1.3
165
- PROTOC_VERSION ? = v1.3.0
164
+ GORELEASER_VERSION : = v1.8.3
165
+ GINKGO_VERSION : = v2.1.3
166
+ PROTOC_VERSION : = v1.3.0
166
167
167
168
.PHONY : goreleaser
168
169
goreleaser : $(GORELEASER ) # # Download goreleaser locally if necessary.
0 commit comments