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

Commit

Permalink
Install gocode-gomod and set default gopath
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuxel committed Apr 18, 2019
1 parent cf09dfb commit 534f247
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 8 additions & 1 deletion containers/go/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,18 @@ RUN go get -u -v \
github.com/mgechev/revive \
github.com/derekparker/delve/cmd/dlv

# gocode-gomod
RUN go get -x -d github.com/stamblerre/gocode \
&& go build -o gocode-gomod github.com/stamblerre/gocode \
&& mv gocode-gomod $GOPATH/bin/

# Copy default endpoint specific user settings overrides into container to specify Python path
COPY settings.vscode.json /root/.vscode-remote/data/Machine/settings.json

# Install git, process tools
RUN apt-get update && apt-get -y install git procps

# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*

3 changes: 3 additions & 0 deletions containers/go/.devcontainer/settings.vscode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"go.gopath": "/go"
}

0 comments on commit 534f247

Please sign in to comment.