From da97d708d2b9f282af5a66e17f709cf554e9b39b Mon Sep 17 00:00:00 2001 From: Caleb Foust Date: Wed, 13 Dec 2023 05:53:41 -0500 Subject: [PATCH] feat: upgrade to go 1.21 --- .github/workflows/build-artifacts-and-draft-release.yml | 6 +++--- .github/workflows/ci.yml | 2 +- .github/workflows/docs.yml | 2 +- ci/goreleaser-for-darwin.yaml | 2 +- ci/goreleaser-for-linux.yaml | 2 +- go.mod | 2 +- pkg/version/module.go | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-artifacts-and-draft-release.yml b/.github/workflows/build-artifacts-and-draft-release.yml index 7dd48a09..641f3efd 100644 --- a/.github/workflows/build-artifacts-and-draft-release.yml +++ b/.github/workflows/build-artifacts-and-draft-release.yml @@ -33,7 +33,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: 1.21 - name: Build uses: goreleaser/goreleaser-action@v5 with: @@ -51,7 +51,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: 1.21 - name: Build uses: goreleaser/goreleaser-action@v5 with: @@ -70,7 +70,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: 1.21 - name: Make directories run: | mkdir -p ./cy-build/linux diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f60fd6b..ed8c0d0d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.19" + go-version: "1.21" - name: Build run: go build -v ./cmd/cy/. diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index eacbd001..4022ebe3 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -27,7 +27,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.19" + go-version: "1.21" - uses: charmbracelet/vhs-action@v2 diff --git a/ci/goreleaser-for-darwin.yaml b/ci/goreleaser-for-darwin.yaml index e7e963bd..9d327032 100644 --- a/ci/goreleaser-for-darwin.yaml +++ b/ci/goreleaser-for-darwin.yaml @@ -37,7 +37,7 @@ builds: - embed_frontend env: - VERSION="development" - - GO_VERSION="1.19" + - GO_VERSION="1.21" - CGO_ENABLED=1 - GIT_COMMIT="unknown" - BUILD_TIME="unknown" diff --git a/ci/goreleaser-for-linux.yaml b/ci/goreleaser-for-linux.yaml index 60d74062..04279286 100644 --- a/ci/goreleaser-for-linux.yaml +++ b/ci/goreleaser-for-linux.yaml @@ -37,7 +37,7 @@ builds: - embed_frontend env: - VERSION="development" - - GO_VERSION="1.19" + - GO_VERSION="1.21" - CGO_ENABLED=1 - GIT_COMMIT="unknown" - BUILD_TIME="unknown" diff --git a/go.mod b/go.mod index a2351104..ec74b998 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/cfoust/cy -go 1.19 +go 1.21 require ( github.com/alecthomas/chroma v0.10.0 // indirect diff --git a/pkg/version/module.go b/pkg/version/module.go index cb127037..23bc55f1 100644 --- a/pkg/version/module.go +++ b/pkg/version/module.go @@ -3,7 +3,7 @@ package version // These should be set via go build -ldflags -X 'xxxx'. var ( Version = "development" - GoVersion = "1.19" + GoVersion = "1.21" GitCommit = "unknown" BuildTime = "unknown" )