From 17a51eeda20cd5d59c240a4741c5a71a71ab4765 Mon Sep 17 00:00:00 2001 From: litsynp Date: Sun, 18 Aug 2024 11:25:45 +0900 Subject: [PATCH] build: go 1.22 --- .github/workflows/ci.yml | 2 +- Dockerfile | 2 +- flake.nix | 4 ++-- go.mod | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86f44048..ccc72b09 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.21.6' + go-version: '1.22' cache: false - name: Generate Swagger diff --git a/Dockerfile b/Dockerfile index 890d3ef2..6d79f179 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build stage -FROM golang:1.21.6 AS build-stage +FROM golang:1.22 AS build-stage WORKDIR /app COPY go.mod *go.sum ./ RUN go mod download diff --git a/flake.nix b/flake.nix index e1494eab..d50e3e6f 100644 --- a/flake.nix +++ b/flake.nix @@ -5,7 +5,7 @@ outputs = { self, nixpkgs }: let - goVersion = 21; # Change this to update the whole stack + goVersion = 22; # Change this to update the whole stack overlays = [ (final: prev: { go = prev."go_1_${toString goVersion}"; }) ]; supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { @@ -17,7 +17,7 @@ default = pkgs.mkShell { packages = with pkgs; [ # go (specified by overlay) - go_1_21 + go_1_22 # goimports, godoc, etc. gotools diff --git a/go.mod b/go.mod index 9ddc2958..464f5c2d 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/pet-sitter/pets-next-door-api -go 1.21.6 +go 1.22 require ( firebase.google.com/go v3.13.0+incompatible