@@ -66,7 +66,7 @@ RUN mkdir --parents "$GOPATH" && \
66
66
go install github.com/dvyukov/go-fuzz/go-fuzz-build@latest && \
67
67
# go-releaser for building 'fat binaries' that work cross-platform
68
68
go install github.com/goreleaser/goreleaser@v1.6.1 && \
69
- go install mvdan.cc/sh/v3/cmd/shfmt@latest
69
+ go install mvdan.cc/sh/v3/cmd/shfmt@latest && \
70
70
# nfpm is used with `make build` to make release packages
71
71
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@v2.16.0
72
72
@@ -177,9 +177,6 @@ RUN apt-get update && \
177
177
RUN update-alternatives --install /usr/local/bin/initdb initdb /usr/lib/postgresql/11/bin/initdb 100 && \
178
178
update-alternatives --install /usr/local/bin/postgres postgres /usr/lib/postgresql/11/bin/postgres 100
179
179
180
- # Ensure goboring is made the default Go
181
- RUN update-alternatives --install /usr/local/bin/gofmt gofmt /usr/local/goboring/bin/gofmt 100
182
-
183
180
# Create links for injected dependencies
184
181
RUN ln --symbolic /var/tmp/coder/coder-cli/coder /usr/local/bin/coder && \
185
182
ln --symbolic /var/tmp/coder/code-server/bin/code-server /usr/local/bin/code-server
@@ -299,6 +296,9 @@ RUN mkdir /usr/local/goboring && \
299
296
300
297
ENV PATH=$PATH:/usr/local/goboring/bin
301
298
299
+ # Ensure goboring is made the default Go
300
+ RUN update-alternatives --install /usr/local/bin/gofmt gofmt /usr/local/goboring/bin/gofmt 100
301
+
302
302
COPY --from=go /tmp/bin /usr/local/bin
303
303
304
304
COPY --from=rust-utils /tmp/bin /usr/local/bin
0 commit comments