chore: upgrade Go version to 1.22.4 (#13623)

Updates Go version to 1.22.4

Co-authored-by: Muhammad Atif Ali <me@matifali.dev>
This commit is contained in:
Cian Johnston
2024-06-24 15:50:52 +01:00
committed by GitHub
parent 7cb8bfb133
commit b4a5c7ffa9
6 changed files with 9 additions and 12 deletions

View File

@ -4,7 +4,7 @@ description: |
inputs: inputs:
version: version:
description: "The Go version to use." description: "The Go version to use."
default: "1.22.3" default: "1.22.4"
runs: runs:
using: "composite" using: "composite"
steps: steps:

View File

@ -254,12 +254,9 @@ jobs:
- name: Setup Node - name: Setup Node
uses: ./.github/actions/setup-node uses: ./.github/actions/setup-node
# Use default Go version
- name: Setup Go - name: Setup Go
uses: buildjet/setup-go@v5 uses: ./.github/actions/setup-go
with:
# This doesn't need caching. It's super fast anyways!
cache: false
go-version: 1.21.9
- name: Install shfmt - name: Install shfmt
run: go install mvdan.cc/sh/v3/cmd/shfmt@v3.7.0 run: go install mvdan.cc/sh/v3/cmd/shfmt@v3.7.0

View File

@ -8,7 +8,7 @@ FROM ubuntu:jammy AS go
RUN apt-get update && apt-get install --yes curl gcc RUN apt-get update && apt-get install --yes curl gcc
# Install Go manually, so that we can control the version # Install Go manually, so that we can control the version
ARG GO_VERSION=1.22.3 ARG GO_VERSION=1.22.4
RUN mkdir --parents /usr/local/go RUN mkdir --parents /usr/local/go
# Boring Go is needed to build FIPS-compliant binaries. # Boring Go is needed to build FIPS-compliant binaries.

6
flake.lock generated
View File

@ -91,11 +91,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1715087517, "lastModified": 1719075281,
"narHash": "sha256-CLU5Tsg24Ke4+7sH8azHWXKd0CFd4mhLWfhYgUiDBpQ=", "narHash": "sha256-CyyxvOwFf12I91PBWz43iGT1kjsf5oi6ax7CrvaMyAo=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b211b392b8486ee79df6cdfb1157ad2133427a29", "rev": "a71e967ef3694799d0c418c98332f7ff4cc5f6af",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -97,7 +97,7 @@
name = "coder-${osArch}"; name = "coder-${osArch}";
# Updated with ./scripts/update-flake.sh`. # Updated with ./scripts/update-flake.sh`.
# This should be updated whenever go.mod changes! # This should be updated whenever go.mod changes!
vendorHash = "sha256-BVgjKZeVogPb/kyCtZw/R898TI4YGnu9oWzzxHSVIyY="; vendorHash = "sha256-+K95kbYNMKiYk7obN2gjNCtBvaXBWPLKm12N6cF9ImQ=";
proxyVendor = true; proxyVendor = true;
src = ./.; src = ./.;
nativeBuildInputs = with pkgs; [ getopt openssl zstd ]; nativeBuildInputs = with pkgs; [ getopt openssl zstd ];

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/coder/coder/v2 module github.com/coder/coder/v2
go 1.22.3 go 1.22.4
// 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