Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 534f247

Browse files
committed
Install gocode-gomod and set default gopath
1 parent cf09dfb commit 534f247

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

containers/go/.devcontainer/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,18 @@ RUN go get -u -v \
2323
github.com/mgechev/revive \
2424
github.com/derekparker/delve/cmd/dlv
2525

26+
# gocode-gomod
27+
RUN go get -x -d github.com/stamblerre/gocode \
28+
&& go build -o gocode-gomod github.com/stamblerre/gocode \
29+
&& mv gocode-gomod $GOPATH/bin/
30+
31+
# Copy default endpoint specific user settings overrides into container to specify Python path
32+
COPY settings.vscode.json /root/.vscode-remote/data/Machine/settings.json
33+
2634
# Install git, process tools
2735
RUN apt-get update && apt-get -y install git procps
2836

2937
# Clean up
3038
RUN apt-get autoremove -y \
3139
&& apt-get clean -y \
3240
&& rm -rf /var/lib/apt/lists/*
33-
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"go.gopath": "/go"
3+
}

0 commit comments

Comments
 (0)