Skip to content

Commit b199a9c

Browse files
authored
fix: patch buildversion (#623)
* fix: buildVersion -> BuildVersion Signed-off-by: Peter Engelbert <[email protected]> * Pin golang image to 1.19.4-bullseye Signed-off-by: Peter Engelbert <[email protected]> --------- Signed-off-by: Peter Engelbert <[email protected]>
1 parent 28277bb commit b199a9c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build/tooling/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.19-bullseye
1+
FROM golang:1.19.4-bullseye
22

33
RUN GO111MODULE=on go install sigs.k8s.io/controller-tools/cmd/[email protected]
44
RUN GO111MODULE=on go install k8s.io/code-generator/cmd/[email protected]

build/version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ version::ldflags() {
8181
add_ldflag "vcsState" "${GIT_TREE_STATE}"
8282

8383
if [[ ! -z ${GIT_VERSION} ]]; then
84-
add_ldflag "buildVersion" "${GIT_VERSION}"
84+
add_ldflag "BuildVersion" "${GIT_VERSION}"
8585
add_ldflag "vcsMajor" "${GIT_MAJOR}"
8686
add_ldflag "vcsMinor" "${GIT_MINOR}"
8787
elif [[ ! -z $1 ]]; then
88-
add_ldflag "buildVersion" "$1"
88+
add_ldflag "BuildVersion" "$1"
8989
fi
9090

9191
# The -ldflags parameter takes a single string, so join the output.

0 commit comments

Comments
 (0)