Skip to content

Commit

Permalink
Install golangci-lint from fork using dev branch
Browse files Browse the repository at this point in the history
Use dev feat/go1.23 branch from golangci-lint fork in unstable
linting image until complete support lands in official repo.

refs GH-1590
  • Loading branch information
atc0005 committed Jun 26, 2024
1 parent d8ee5d0 commit ca72569
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions unstable/combined/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ ENV GOTOOLCHAIN="local"
# A current dev branch build (mirrored to fork) is used for pre-release Go
# versions, otherwise the latest upstream build of the tool is installed in
# this image.
ENV GOLANGCI_LINT_VERSION="v1.59.1"
# ENV GOLANGCI_LINT_VERSION="v1.59.1"
ENV GOLANGCI_LINT_VERSION="feat/go1.23"

# A current master branch build is used for pre-release Go versions, otherwise
# the latest upstream build of the tool is installed in this image.
Expand Down Expand Up @@ -87,19 +88,18 @@ RUN echo "Installing errwrap@${ERRWRAP_VERSION}" \
# && go install . \
# && cd ..

# RUN echo "Installing golangci-lint from dev feat/go1.20 branch" \
# && git clone https://github.com/atc0005/golangci-lint \
# && cd golangci-lint \
# && git checkout ${GOLANGCI_LINT_VERSION} \
# && go install ./cmd/golangci-lint \
# && golangci-lint --version

RUN echo "Installing golangci-lint@${GOLANGCI_LINT_VERSION}" \
&& echo "Installing golangci-lint ${GOLANGCI_LINT_VERSION}" \
&& curl -sSfLO https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh \
&& sh install.sh -b "$(go env GOPATH)/bin" ${GOLANGCI_LINT_VERSION} \
RUN echo "Installing golangci-lint from dev feat/go1.23 branch" \
&& git clone https://github.com/atc0005/golangci-lint \
&& cd golangci-lint \
&& git checkout ${GOLANGCI_LINT_VERSION} \
&& go install ./cmd/golangci-lint \
&& golangci-lint --version

# RUN echo "Installing golangci-lint@${GOLANGCI_LINT_VERSION}" \
# && echo "Installing golangci-lint ${GOLANGCI_LINT_VERSION}" \
# && curl -sSfLO https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh \
# && sh install.sh -b "$(go env GOPATH)/bin" ${GOLANGCI_LINT_VERSION} \
# && golangci-lint --version

FROM amd64/golang:1.23rc1-bookworm as final

Expand Down

0 comments on commit ca72569

Please sign in to comment.