File tree Expand file tree Collapse file tree 2 files changed +26
-20
lines changed Expand file tree Collapse file tree 2 files changed +26
-20
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -eu
4
4
5
- REPO=github.com/openshift/cluster-version-operator
6
- GOFLAGS=${GOFLAGS:- -mod=vendor}
7
- GLDFLAGS=${GLDFLAGS:- }
8
-
9
- eval $( go env | grep -e " GOHOSTOS" -e " GOHOSTARCH" )
10
-
11
- GOOS=${GOOS:- ${GOHOSTOS} }
12
- GOARCH=${GOARCH:- ${GOHOSTARCH} }
13
-
14
5
# Go to the root of the repo
15
6
cd " $( git rev-parse --show-cdup) "
16
7
17
- VERSION_OVERRIDE=${VERSION_OVERRIDE:- ${OS_GIT_VERSION:- } }
18
- if [ -z " ${VERSION_OVERRIDE:- } " ]; then
19
- echo " Using version from git..."
20
- VERSION_OVERRIDE=$( git describe --abbrev=8 --dirty --always)
21
- fi
22
-
23
- eval $( go env)
24
-
25
- if [ -z ${BIN_PATH+a} ]; then
26
- export BIN_PATH=_output/${GOOS} /${GOARCH}
27
- fi
8
+ # Source build variables
9
+ source hack/build-info.sh
28
10
29
11
echo " Building binaries into ${BIN_PATH} "
30
12
mkdir -p ${BIN_PATH}
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -eu
4
+
5
+ REPO=github.com/openshift/cluster-version-operator
6
+ GOFLAGS=${GOFLAGS:- -mod=vendor}
7
+ GLDFLAGS=${GLDFLAGS:- }
8
+
9
+ eval $( go env | grep -e " GOHOSTOS" -e " GOHOSTARCH" )
10
+
11
+ GOOS=${GOOS:- ${GOHOSTOS} }
12
+ GOARCH=${GOARCH:- ${GOHOSTARCH} }
13
+
14
+ VERSION_OVERRIDE=${VERSION_OVERRIDE:- ${OS_GIT_VERSION:- } }
15
+ if [ -z " ${VERSION_OVERRIDE:- } " ]; then
16
+ echo " Using version from git..."
17
+ VERSION_OVERRIDE=$( git describe --abbrev=8 --dirty --always)
18
+ fi
19
+
20
+ eval $( go env)
21
+
22
+ if [ -z ${BIN_PATH+a} ]; then
23
+ export BIN_PATH=_output/${GOOS} /${GOARCH}
24
+ fi
You can’t perform that action at this time.
0 commit comments