Skip to content

Commit 53d1fb3

Browse files
authored
update-alternatives to ensure gofmt is goboring gofmt (#3540)
1 parent d6351a6 commit 53d1fb3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dogfood/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ RUN apt-get update && \
174174
RUN update-alternatives --install /usr/local/bin/initdb initdb /usr/lib/postgresql/11/bin/initdb 100 && \
175175
update-alternatives --install /usr/local/bin/postgres postgres /usr/lib/postgresql/11/bin/postgres 100
176176

177+
# Ensure goboring is made the default Go
178+
RUN update-alternatives --install /usr/local/bin/gofmt gofmt /usr/local/goboring/bin/gofmt 100
179+
177180
# Create links for injected dependencies
178181
RUN ln --symbolic /var/tmp/coder/coder-cli/coder /usr/local/bin/coder && \
179182
ln --symbolic /var/tmp/coder/code-server/bin/code-server /usr/local/bin/code-server

0 commit comments

Comments
 (0)