Skip to content

Commit 685e341

Browse files
authored
fix for passing the vendor version correctly in DockerFile (#379)
1 parent 3d1ea8b commit 685e341

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ COPY main.go .
1414
COPY pkg ./pkg
1515
COPY internal ./internal
1616

17-
RUN CGO_ENABLED=1 go build -a -ldflags '-w -s -X main.vendorVersion="${REV}"' -o /bin/linode-blockstorage-csi-driver /linode
17+
RUN CGO_ENABLED=1 go build -a -ldflags "-w -s -X main.vendorVersion=${REV}" -o /bin/linode-blockstorage-csi-driver /linode
1818

1919
FROM alpine:3.20.3
2020
LABEL maintainers="Linode"

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN go mod tidy
2626

2727
COPY . .
2828

29-
RUN CGO_ENABLED=1 go build -a -ldflags '-X main.vendorVersion='${REV}'' -o /bin/linode-blockstorage-csi-driver /linode
29+
RUN CGO_ENABLED=1 go build -a -ldflags "-w -s -X main.vendorVersion=${REV}" -o /bin/linode-blockstorage-csi-driver /linode
3030
RUN CGO_ENABLED=1 go install go.uber.org/mock/mockgen@latest
3131
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
3232

0 commit comments

Comments
 (0)