Skip to content

Commit

Permalink
build: go 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
litsynp committed Aug 18, 2024
1 parent eed4fb9 commit abfc667
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -17,7 +17,7 @@
default = pkgs.mkShell {
packages = with pkgs; [
# go (specified by overlay)
go_1_21
go_1_22

# goimports, godoc, etc.
gotools
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit abfc667

Please sign in to comment.