Skip to content

Commit

Permalink
Make compatible with go1.22 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi-g80 authored Apr 13, 2024
1 parent 49983bc commit 9d25398
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.22

- name: Build
run: go build -v ./...
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
sha256sum: true
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: 1.19
goversion: 1.22
binary_name: chipku
ldflags: -s -w
extra_files: LICENSE README.md
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.22

- name: Test
run: go test -v ./...
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM golang:1.19-alpine
FROM golang:1.22-alpine

# Define build env
ENV GOOS linux
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/abhi-g80/chipku

go 1.19
go 1.22

require (
github.com/labstack/echo/v4 v4.9.0
Expand Down
2 changes: 1 addition & 1 deletion server/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package server

// Version string
const Version string = "1.1.0"
const Version string = "1.2.0"
2 changes: 1 addition & 1 deletion server/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func TestVersion(t *testing.T) {
var version string = "1.1.0"
var version string = "1.2.0"

if version != Version {
t.Errorf("expected version %s, got %s", version, Version)
Expand Down

0 comments on commit 9d25398

Please sign in to comment.