ci: standardize on go 1.22.12 (#17047)

Standardizes on go1.22.12 in go.mod and in dogfood Dockerfile
This commit is contained in:
Cian Johnston
2025-03-24 16:00:07 +00:00
committed by GitHub
parent d570ce7246
commit 445a059da2
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -2,14 +2,14 @@ FROM rust:slim@sha256:9abf10cc84dfad6ace1b0aae3951dc5200f467c593394288c11db1e17b
# Install rust helper programs # Install rust helper programs
# ENV CARGO_NET_GIT_FETCH_WITH_CLI=true # ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
ENV CARGO_INSTALL_ROOT=/tmp/ ENV CARGO_INSTALL_ROOT=/tmp/
RUN cargo install exa bat ripgrep typos-cli watchexec-cli && \ RUN cargo install typos-cli watchexec-cli && \
# Reduce image size. # Reduce image size.
rm -rf /usr/local/cargo/registry rm -rf /usr/local/cargo/registry
FROM ubuntu:jammy@sha256:0e5e4a57c2499249aafc3b40fcd541e9a456aab7296681a3994d631587203f97 AS go FROM ubuntu:jammy@sha256:0e5e4a57c2499249aafc3b40fcd541e9a456aab7296681a3994d631587203f97 AS go
# Install Go manually, so that we can control the version # Install Go manually, so that we can control the version
ARG GO_VERSION=1.24.1 ARG GO_VERSION=1.22.12
# Boring Go is needed to build FIPS-compliant binaries. # Boring Go is needed to build FIPS-compliant binaries.
RUN apt-get update && \ RUN apt-get update && \
@@ -65,9 +65,6 @@ RUN apt-get update && \
# we're using for the version of go-critic that it embeds, then check # we're using for the version of go-critic that it embeds, then check
# the version of ruleguard in go-critic for that tag. # the version of ruleguard in go-critic for that tag.
go install github.com/quasilyte/go-ruleguard/cmd/ruleguard@v0.3.13 && \ go install github.com/quasilyte/go-ruleguard/cmd/ruleguard@v0.3.13 && \
# go-fuzz for fuzzy testing. they don't publish releases so we rely on latest.
go install github.com/dvyukov/go-fuzz/go-fuzz@latest && \
go install github.com/dvyukov/go-fuzz/go-fuzz-build@latest && \
# go-releaser for building 'fat binaries' that work cross-platform # go-releaser for building 'fat binaries' that work cross-platform
go install github.com/goreleaser/goreleaser@v1.6.1 && \ go install github.com/goreleaser/goreleaser@v1.6.1 && \
go install mvdan.cc/sh/v3/cmd/shfmt@v3.7.0 && \ go install mvdan.cc/sh/v3/cmd/shfmt@v3.7.0 && \
@@ -128,6 +125,7 @@ RUN apt-get update --quiet && apt-get install --yes \
asciinema \ asciinema \
bash \ bash \
bash-completion \ bash-completion \
bat \
bats \ bats \
bind9-dnsutils \ bind9-dnsutils \
build-essential \ build-essential \
@@ -140,6 +138,7 @@ RUN apt-get update --quiet && apt-get install --yes \
docker-ce \ docker-ce \
docker-ce-cli \ docker-ce-cli \
docker-compose-plugin \ docker-compose-plugin \
exa \
fd-find \ fd-find \
file \ file \
fish \ fish \
@@ -176,6 +175,7 @@ RUN apt-get update --quiet && apt-get install --yes \
postgresql-16 \ postgresql-16 \
python3 \ python3 \
python3-pip \ python3-pip \
ripgrep \
rsync \ rsync \
screen \ screen \
shellcheck \ shellcheck \
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/coder/coder/v2 module github.com/coder/coder/v2
go 1.22.9 go 1.22.12
// Required until a v3 of chroma is created to lazily initialize all XML files. // Required until a v3 of chroma is created to lazily initialize all XML files.
// None of our dependencies seem to use the registries anyways, so this // None of our dependencies seem to use the registries anyways, so this