Skip to content

Commit 1a0a265

Browse files
committed
chore: pin golang-lint to 2.11.4
Signed-off-by: Derek Su <derek.su@suse.com>
1 parent 83552fc commit 1a0a265

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Dockerfile.dapper

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ ENV DAPPER_SOURCE /go/src/github.com/longhorn/longhorn-instance-manager
1616
ENV SRC_BRANCH ${SRC_BRANCH}
1717
ENV SRC_TAG ${SRC_TAG}
1818

19+
ENV GOLANGCI_LINT_VERSION=v2.11.4
20+
1921
WORKDIR ${DAPPER_SOURCE}
2022

2123
ENTRYPOINT ["./scripts/entry"]
@@ -35,7 +37,9 @@ RUN zypper -n install cmake wget curl git less file \
3537
rm -rf /var/cache/zypp/*
3638

3739
# Install golanci-lint
38-
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest
40+
RUN curl -fsSL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh -o /tmp/install.sh \
41+
&& chmod +x /tmp/install.sh \
42+
&& /tmp/install.sh -b /usr/local/bin ${GOLANGCI_LINT_VERSION}
3943

4044
# If TAG is explicitly set and exists in the repo, switch to the tag
4145
RUN git clone https://github.com/longhorn/dep-versions.git -b ${SRC_BRANCH} /usr/src/dep-versions && \

0 commit comments

Comments
 (0)