Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

chore(deps): update Go version to 1.23 in configuration files

LinkinStars03ec0ddfbb34
diff --git a/.github/workflows/build-binary-for-release.yml b/.github/workflows/build-binary-for-release.yml
index ec97f042..49c53051 100644
--- a/.github/workflows/build-binary-for-release.yml
+++ b/.github/workflows/build-binary-for-release.yml
@@ -44,7 +44,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
- go-version: 1.22
+ go-version: 1.23
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
diff --git a/Dockerfile b/Dockerfile
index 929f321d..2e90a430 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-FROM golang:1.22-alpine AS golang-builder
+FROM golang:1.23-alpine AS golang-builder
LABEL maintainer="[email protected]"
ARG GOPROXY
diff --git a/README.md b/README.md
index 8f5ae243..8fbb325b 100644
--- a/README.md
+++ b/README.md
@@ -40,7 +40,7 @@ You can also check out the [plugins here](https://answer.apache.org/plugins).
### Prerequisites
-- Golang >= 1.22
+- Golang >= 1.23
- Node.js >= 20
- pnpm >= 9
- [mockgen](https://github.com/uber-go/mock?tab=readme-ov-file#installation) >= 1.6.0
diff --git a/cmd/main.go b/cmd/main.go
index 5bc26572..35256c07 100644
--- a/cmd/main.go
+++ b/cmd/main.go
@@ -49,7 +49,7 @@ var (
// Time is the build time of the project
Time = ""
// GoVersion is the go version of the project
- GoVersion = "1.22"
+ GoVersion = "1.23"
// log level
logLevel = os.Getenv("LOG_LEVEL")
// log path
diff --git a/internal/cli/build.go b/internal/cli/build.go
index 2f43a911..43a7aa9f 100644
--- a/internal/cli/build.go
+++ b/internal/cli/build.go
@@ -62,7 +62,7 @@ func main() {
`
goModTpl = `module answer
-go 1.22
+go 1.23
`
)