File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ ENV DAPPER_SOURCE /go/src/github.com/longhorn/longhorn-instance-manager
1616ENV SRC_BRANCH ${SRC_BRANCH}
1717ENV SRC_TAG ${SRC_TAG}
1818
19+ ENV GOLANGCI_LINT_VERSION=v2.11.4
20+
1921WORKDIR ${DAPPER_SOURCE}
2022
2123ENTRYPOINT ["./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
4145RUN git clone https://github.com/longhorn/dep-versions.git -b ${SRC_BRANCH} /usr/src/dep-versions && \
You can’t perform that action at this time.
0 commit comments