This repository was archived by the owner on Apr 28, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 5
5
#
6
6
# Changed FROM to be compatible with `buildfrom.sh`.
7
7
# Removed WORKDIR.
8
+ # Removed GOPATH.
8
9
9
10
FROM %BASE
10
11
@@ -51,7 +52,4 @@ RUN set -eux; \
51
52
export PATH="/usr/local/go/bin:$PATH"; \
52
53
go version
53
54
54
- ENV GOPATH /go
55
- ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
56
-
57
- RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
55
+ ENV PATH /usr/local/go/bin:$PATH
Original file line number Diff line number Diff line change 1
1
FROM %BASE
2
2
3
+ # Set and create GOPATH directories.
4
+ ENV GOPATH /home/user/go
5
+ ENV PATH $GOPATH/bin:$PATH
6
+ RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
7
+
3
8
ADD install_go_tools.sh /tmp/
4
9
RUN bash /tmp/install_go_tools.sh
5
10
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # Taken from https://github.com/Microsoft/vscode-go/wiki/Go-tools-that-the-Go-extension-depends-on
3
2
3
+ # Taken from https://github.com/Microsoft/vscode-go/wiki/Go-tools-that-the-Go-extension-depends-on
4
4
go get -u -v github.com/ramya-rao-a/go-outline
5
5
go get -u -v github.com/acroca/go-symbols
6
6
go get -u -v github.com/mdempsky/gocode
@@ -20,8 +20,14 @@ go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs
20
20
go get -u -v github.com/davidrjenni/reftools/cmd/fillstruct
21
21
go get -u -v github.com/alecthomas/gometalinter
22
22
23
- ~ /go/bin/gometalinter --install
23
+ go get -u -v github.com/go-delve/delve/cmd/dlv
24
+
25
+ # gocode-gomod needs to be built manually as the binary is renamed.
26
+ go get -u -v -d github.com/stamblerre/gocode
27
+ go build -o $GOPATH /bin/gocode-gomod github.com/stamblerre/gocode
24
28
29
+ # Install linters for gometalinter.
30
+ $GOPATH /bin/gometalinter --install
25
31
26
32
# gopls is generally recommended over community tools.
27
33
# It's much faster and more reliable than the other options.
You can’t perform that action at this time.
0 commit comments