From c4732706caa4b09d3d2078e7530d3b477e2cfa24 Mon Sep 17 00:00:00 2001 From: bun913 Date: Sat, 18 Apr 2026 09:56:46 +0900 Subject: [PATCH 1/2] chore: go version --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- .tool-versions | 2 +- go.mod | 4 +++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb4f12e..2b31f21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: "1.26" + go-version-file: .tool-versions - name: Check formatting run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5445e99..368ddd1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,7 +41,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: "1.26" + go-version-file: .tool-versions - name: Build binary env: diff --git a/.tool-versions b/.tool-versions index fde0234..05a23a6 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -golang 1.26.1 +golang 1.26.2 diff --git a/go.mod b/go.mod index 82d1770..b34ecc5 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,8 @@ module github.com/bun913/live-markdown.nvim -go 1.22.3 +go 1.26 + +toolchain go1.26.2 require ( github.com/alecthomas/chroma/v2 v2.23.1 From e59e9125c42a76d3b4e4e91a27de15cf67fe586c Mon Sep 17 00:00:00 2001 From: bun913 Date: Sat, 18 Apr 2026 10:07:29 +0900 Subject: [PATCH 2/2] fix(ci): read Go version from go.mod instead of .tool-versions actions/setup-go@v5 does not strip the tool-name prefix from .tool-versions entries and treats "golang 1.26.2" as a literal version spec, which fails to resolve. go.mod works because setup-go understands the `toolchain` directive (pinned to go1.26.2), so both local and CI still share one source. --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b31f21..f4a3b8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version-file: .tool-versions + go-version-file: go.mod - name: Check formatting run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 368ddd1..c77a77d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,7 +41,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version-file: .tool-versions + go-version-file: go.mod - name: Build binary env: