From 350b502d9ec125749d8c2e94bac576f14daa0de9 Mon Sep 17 00:00:00 2001 From: H0llyW00dzZ Date: Wed, 7 Feb 2024 20:03:39 +0700 Subject: [PATCH] go1.22 has lift-off! (#313) * go1.22 has lift-off! - [+] chore: upgrade Go version from 1.21.6 to 1.22.0 in README.md and go.mod - [+] docs(README.md): update Go version upgrade task status to completed * Chore CI CodeQL - [+] chore(CodeQL.yml): upgrade go-version from 1.21.6 to 1.22.0 in GitHub Actions workflow * Chore Docker Builder - [+] chore(Dockerfile): upgrade golang version from 1.21.6 to 1.22.0 in Dockerfile --- .github/workflows/CodeQL.yml | 2 +- Dockerfile | 2 +- README.md | 4 ++-- go.mod | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CodeQL.yml b/.github/workflows/CodeQL.yml index d65d01f..8fdb6df 100644 --- a/.github/workflows/CodeQL.yml +++ b/.github/workflows/CodeQL.yml @@ -88,7 +88,7 @@ jobs: if: ${{ matrix.language == 'go' }} uses: actions/setup-go@v4 with: - go-version: '1.21.6' + go-version: '1.22.0' env: NODE_VERSION: 18 diff --git a/Dockerfile b/Dockerfile index 0e1dcb6..6142a3e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Start from the official Go image to build our application. -FROM golang:1.21.6 as builder +FROM golang:1.22.0 as builder # Set the working directory inside the container. WORKDIR /app diff --git a/README.md b/README.md index 328559c..c3ddc5b 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Copyright (©️) 2024 @H0llyW00dzZ All rights reserved. -[![Go Version](https://img.shields.io/badge/1.21.6-gray?style=flat&logo=go&logoWidth=15)](https://github.com/H0llyW00dzZ/GoGenAI-Terminal-Chat/blob/master/go.mod#L3) +[![Go Version](https://img.shields.io/badge/1.22.0-gray?style=flat&logo=go&logoWidth=15)](https://github.com/H0llyW00dzZ/GoGenAI-Terminal-Chat/blob/master/go.mod#L3) [![Go Reference](https://pkg.go.dev/badge/github.com/H0llyW00dzZ/GoGenAI-Terminal-Chat.svg)](https://pkg.go.dev/github.com/H0llyW00dzZ/GoGenAI-Terminal-Chat) [![Go Report Card](https://goreportcard.com/badge/github.com/H0llyW00dzZ/GoGenAI-Terminal-Chat)](https://goreportcard.com/report/github.com/H0llyW00dzZ/GoGenAI-Terminal-Chat) @@ -392,7 +392,7 @@ Contributions is always welcome! If you're able to write code that adheres to a > [!NOTE] > The `Web Interface Support` feature is designed to facilitate support for WebAssembly (WASM), leveraging its development in Go. This enables the management of chat and other functionalities locally, starting from version v1.0.0+ (probably v2) of this repository, once it is reached and deemed stable. For best practices, [read here](https://pkg.go.dev/about#best-practices). -- [ ] **Go Upgrade to 1.22** +- [X] **Go Upgrade to 1.22** ### Command Tools: - [ ] **Calculate the Size of the Code Base Volume** diff --git a/go.mod b/go.mod index d407a48..8d7ee08 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/H0llyW00dzZ/GoGenAI-Terminal-Chat -go 1.21.6 +go 1.22.0 require ( github.com/google/generative-ai-go v0.6.0 // direct