Skip to content

Commit b522585

Browse files
committed
chore: upgrade Go to 1.23.0
Signed-off-by: Donnie Adams <[email protected]>
1 parent 0df984f commit b522585

File tree

15 files changed

+24
-29
lines changed

15 files changed

+24
-29
lines changed

.github/workflows/integration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/setup-go@v5
3030
with:
3131
cache: false
32-
go-version: "1.22"
32+
go-version: "1.23"
3333
- name: Build
3434
if: matrix.os == 'ubuntu-22.04'
3535
run: make build

.github/workflows/main.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ jobs:
2626
uses: actions/setup-go@v5
2727
with:
2828
cache: false
29-
# This can't be upgraded until the issue with sys.daemon on Windows is resolved
30-
# After the issue is resolved, this can be set to 1.22
31-
go-version: "1.22.4"
29+
go-version: "1.23"
3230
- name: Run GoReleaser
3331
uses: goreleaser/goreleaser-action@v6
3432
with:

.github/workflows/release.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ jobs:
2020
uses: actions/setup-go@v5
2121
with:
2222
cache: false
23-
# This can't be upgraded until the issue with sys.daemon on Windows is resolved
24-
# After the issue is resolved, this can be set to 1.22
25-
go-version: "1.22.4"
23+
go-version: "1.23"
2624
- name: Run GoReleaser
2725
uses: goreleaser/goreleaser-action@v6
2826
with:

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/setup-go@v5
3030
with:
3131
cache: false
32-
go-version: "1.22"
32+
go-version: "1.23"
3333
- name: Validate
3434
if: matrix.os == 'ubuntu-22.04'
3535
run: make validate

.github/workflows/validate-docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
- uses: actions/setup-go@v5
1818
with:
1919
cache: false
20-
go-version: "1.22"
20+
go-version: "1.23"
2121
- run: make init-docs
2222
- run: make validate-docs

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ smoke: build
2222
smoke:
2323
go test -v -tags='smoke' ./pkg/tests/smoke/...
2424

25-
GOLANGCI_LINT_VERSION ?= v1.59.0
25+
GOLANGCI_LINT_VERSION ?= v1.60.1
2626
lint:
2727
if ! command -v golangci-lint &> /dev/null; then \
2828
echo "Could not find golangci-lint, installing version $(GOLANGCI_LINT_VERSION)."; \

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module github.com/gptscript-ai/gptscript
22

3-
// This can't be upgraded until the issue with sys.daemon on Windows is resolved
4-
go 1.22.4
3+
go 1.23.0
54

65
require (
76
github.com/AlecAivazis/survey/v2 v2.3.7

pkg/loader/openapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func getOpenAPITools(t *openapi3.T, defaultHost, source, targetToolName string)
8686
pathObj := pathMap[pathString]
8787
// Handle path-level server override, if one exists
8888
pathServer := defaultServer
89-
if pathObj.Servers != nil && len(pathObj.Servers) > 0 {
89+
if len(pathObj.Servers) > 0 {
9090
pathServer, err = parseServer(pathObj.Servers[0])
9191
if err != nil {
9292
return nil, err

pkg/openapi/getschema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func GetSchema(operationID, defaultHost string, t *openapi3.T) (string, Operatio
8383
for path, pathItem := range t.Paths.Map() {
8484
// Handle path-level server override, if one exists.
8585
pathServer := defaultServer
86-
if pathItem.Servers != nil && len(pathItem.Servers) > 0 {
86+
if len(pathItem.Servers) > 0 {
8787
pathServer, err = parseServer(pathItem.Servers[0])
8888
if err != nil {
8989
return "", OperationInfo{}, false, err

pkg/repos/runtimes/default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var Runtimes = []repos.Runtime{
2626
Default: true,
2727
},
2828
&golang.Runtime{
29-
Version: "1.22.1",
29+
Version: "1.23.0",
3030
},
3131
}
3232

0 commit comments

Comments
 (0)