From 56a70f9f32e37cc7d938d1bdd15c92c80faa8854 Mon Sep 17 00:00:00 2001 From: M Atif Ali Date: Tue, 24 Mar 2026 17:10:26 +0500 Subject: [PATCH] chore: upgrade Go to 1.26 Use major.minor versioning to automatically pick up patch releases. Fix pre-existing vet error in workspace.go caught by Go 1.26 stricter checks. --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 6 +++--- go.mod | 2 +- provider/workspace.go | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8481aa8d..5a99225b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v6 with: - go-version: "1.24.6" + go-version: "1.26" id: go - name: Get dependencies @@ -86,7 +86,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v6 with: - go-version: "1.24.6" + go-version: "1.26" - name: Import GPG key id: import_gpg diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f4d1558d..bc2bbf4e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v6 with: - go-version: "1.24.6" + go-version: "1.26" id: go - name: Get dependencies @@ -104,7 +104,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v6 with: - go-version: "1.24.6" + go-version: "1.26" id: go - uses: hashicorp/setup-terraform@v4 @@ -137,7 +137,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v6 with: - go-version: "1.24.6" + go-version: "1.26" id: go - uses: hashicorp/setup-terraform@v4 diff --git a/go.mod b/go.mod index 7adc3e01..402ab6f2 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/coder/terraform-provider-coder/v2 -go 1.24.6 +go 1.26 require ( github.com/docker/docker v26.1.5+incompatible diff --git a/provider/workspace.go b/provider/workspace.go index 334a4d7b..c10e8973 100644 --- a/provider/workspace.go +++ b/provider/workspace.go @@ -88,7 +88,7 @@ func workspaceDataSource() *schema.Resource { } port, err := strconv.Atoi(rawPort) if err != nil { - return diag.Errorf("couldn't parse port %q", port) + return diag.Errorf("couldn't parse port %q", rawPort) } rd.Set("access_port", port)