-
Notifications
You must be signed in to change notification settings - Fork 915
ci: standardize on go 1.22.12 #17047
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
d98d3e8
chore(dogfood/coder/Dockerfile): revert bump of Go version in dogfood…
johnstcn fe48124
go1.22.12
johnstcn ab45772
chore(dogfood/coder): install rust deps from apt when possible
johnstcn d0c9cf8
chore(dogfood/coder): remove unused go-fuzz dependency
johnstcn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ FROM rust:slim@sha256:9abf10cc84dfad6ace1b0aae3951dc5200f467c593394288c11db1e17b | |
# Install rust helper programs | ||
# ENV CARGO_NET_GIT_FETCH_WITH_CLI=true | ||
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. | ||
rm -rf /usr/local/cargo/registry | ||
|
||
FROM ubuntu:jammy@sha256:0e5e4a57c2499249aafc3b40fcd541e9a456aab7296681a3994d631587203f97 AS go | ||
|
||
# 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. | ||
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 | ||
# the version of ruleguard in go-critic for that tag. | ||
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 && \ | ||
Comment on lines
-68
to
-70
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. review: this was failing to build with a tools dependency issue but it doesn't seem to be required since go 1.18? |
||
# go-releaser for building 'fat binaries' that work cross-platform | ||
go install github.com/goreleaser/goreleaser@v1.6.1 && \ | ||
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 \ | ||
bash \ | ||
bash-completion \ | ||
bat \ | ||
bats \ | ||
bind9-dnsutils \ | ||
build-essential \ | ||
|
@@ -140,6 +138,7 @@ RUN apt-get update --quiet && apt-get install --yes \ | |
docker-ce \ | ||
docker-ce-cli \ | ||
docker-compose-plugin \ | ||
exa \ | ||
fd-find \ | ||
file \ | ||
fish \ | ||
|
@@ -176,6 +175,7 @@ RUN apt-get update --quiet && apt-get install --yes \ | |
postgresql-16 \ | ||
python3 \ | ||
python3-pip \ | ||
ripgrep \ | ||
rsync \ | ||
screen \ | ||
shellcheck \ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
review:
bat
was failing to build for me locally, butbat
,exa
, andripgrep
can now be installed viaapt
.