Skip to content

Commit 9d9d01a

Browse files
committed
Fix installation of golangci-lint on devcontainer
Prior to this commit, vscode was saying "Analysis tools missing" and prompting to install it. Fix was to install golangci-lint via go get, as per: golangci/golangci-lint#1037 (comment)
1 parent fb219c0 commit 9d9d01a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ RUN apt-get update \
3939
github.com/fatih/gomodifytags@latest \
4040
github.com/mgechev/revive@latest \
4141
github.com/go-delve/delve/cmd/dlv@latest 2>&1 \
42+
github.com/golangci/golangci-lint/cmd/[email protected] \
4243
#
4344
# Build gocode-gomod
4445
&& GOPATH=/tmp/gotools go get -x -d github.com/stamblerre/gocode 2>&1 \
@@ -48,9 +49,6 @@ RUN apt-get update \
4849
&& mv /tmp/gotools/bin/* /usr/local/bin/ \
4950
&& mv gocode-gomod /usr/local/bin/ \
5051
#
51-
# Install golangci-lint
52-
&& curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin 2>&1 \
53-
#
5452
# Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
5553
&& groupadd --gid $USER_GID $USERNAME \
5654
&& useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \

0 commit comments

Comments
 (0)