Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef3182b

Browse files
committed
put gofmt update-alternatives in the right place
1 parent 2d9bdee commit ef3182b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dogfood/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ RUN apt-get update && \
177177
RUN update-alternatives --install /usr/local/bin/initdb initdb /usr/lib/postgresql/11/bin/initdb 100 && \
178178
update-alternatives --install /usr/local/bin/postgres postgres /usr/lib/postgresql/11/bin/postgres 100
179179

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-
183180
# Create links for injected dependencies
184181
RUN ln --symbolic /var/tmp/coder/coder-cli/coder /usr/local/bin/coder && \
185182
ln --symbolic /var/tmp/coder/code-server/bin/code-server /usr/local/bin/code-server
@@ -299,6 +296,9 @@ RUN mkdir /usr/local/goboring && \
299296

300297
ENV PATH=$PATH:/usr/local/goboring/bin
301298

299+
# Ensure goboring gofmt is made the default gofmt
300+
RUN update-alternatives --install /usr/local/bin/gofmt gofmt /usr/local/goboring/bin/gofmt 100
301+
302302
COPY --from=go /tmp/bin /usr/local/bin
303303

304304
COPY --from=rust-utils /tmp/bin /usr/local/bin

0 commit comments

Comments
 (0)