From 56630f8624659d5b3f17073db31862dbe31053ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Balv=C3=ADn?= Date: Thu, 20 Aug 2026 16:03:26 +0200 Subject: [PATCH] chore(toolchain): upgrade to Go 1.27 --- .gitea/workflows/release.yml | 2 +- .gitea/workflows/test.yml | 6 +++--- AGENTS.md | 4 ++-- CONTRIBUTING.md | 2 +- README.md | 8 ++++---- asm/goobj_test.go | 2 +- docs/{architecture.md => ARCHITECTURE.md} | 0 docs/{cli.md => CLI.md} | 0 docs/{decisions.md => DECISIONS.md} | 0 docs/{development.md => DEVELOPMENT.md} | 2 +- go.mod | 4 ++-- 11 files changed, 15 insertions(+), 15 deletions(-) rename docs/{architecture.md => ARCHITECTURE.md} (100%) rename docs/{cli.md => CLI.md} (100%) rename docs/{decisions.md => DECISIONS.md} (100%) rename docs/{development.md => DEVELOPMENT.md} (98%) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 868f38e..df506b3 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/setup-go@v6 with: - go-version: "1.26" + go-version: "1.27" - name: Download dependencies run: go mod download diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index ef10e20..1a064b6 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/setup-go@v6 with: - go-version: "1.26" + go-version: "1.27" - name: Download dependencies run: go mod download @@ -41,7 +41,7 @@ jobs: - uses: actions/setup-go@v6 with: - go-version: "1.26" + go-version: "1.27" - name: Download dependencies run: go mod download @@ -84,7 +84,7 @@ jobs: - uses: actions/setup-go@v6 with: - go-version: "1.26" + go-version: "1.27" - name: Download dependencies run: go mod download diff --git a/AGENTS.md b/AGENTS.md index 0e85b7f..816bc26 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -21,7 +21,7 @@ repository. All AI-assisted changes must: - **Release procedure.** 1. Bump `version` in `justfile` and `cmd/gasm/main.go`. 2. Update `CHANGELOG.md` with a new `## [X.Y.Z] — YYYY-MM-DD` section. - 3. Update `README.md` and `docs/architecture.md` if user-visible + 3. Update `README.md` and `docs/ARCHITECTURE.md` if user-visible behaviour changed. 4. Run the Definition of Done (below). 5. Commit on `development`. @@ -55,7 +55,7 @@ No body, no footers, no trailing period on the subject. ## Code Style -Language: Go 1.26 (`toolchain go1.26.5`). +Language: Go 1.27 (`toolchain go1.27.0`). ### Formatter diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1f02cc5..390513e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ ## Prerequisites -- Go 1.26 or later (`toolchain go1.26.5`) +- Go 1.27 or later (`toolchain go1.27.0`) - `just` command runner - A Linux host on amd64, arm64, riscv64 or loong64 diff --git a/README.md b/README.md index 7743b3f..18cdece 100644 --- a/README.md +++ b/README.md @@ -90,8 +90,8 @@ cross-compiles the same four targets. | `cmd/gasm` | The `gasm` binary tying it all together. | | `_gen` | The generator that rebuilds the instruction tables from the Go toolchain. | -See [`docs/architecture.md`](docs/architecture.md) for the design rationale and -data flow, and [`docs/decisions.md`](docs/decisions.md) for design decisions +See [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md) for the design rationale and +data flow, and [`docs/DECISIONS.md`](docs/DECISIONS.md) for design decisions deliberately postponed (with the analysis needed to pick them up again). ## Quick start @@ -126,8 +126,8 @@ gasm profile k.s # show basic-block structure ``` See [CONTRIBUTING.md](CONTRIBUTING.md) for the full development workflow, -[docs/cli.md](docs/cli.md) for the command reference, and -[docs/development.md](docs/development.md) for setup and recipes. +[docs/CLI.md](docs/CLI.md) for the command reference, and +[docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) for setup and recipes. ## Editor integration diff --git a/asm/goobj_test.go b/asm/goobj_test.go index 0f235d6..93425e3 100644 --- a/asm/goobj_test.go +++ b/asm/goobj_test.go @@ -379,7 +379,7 @@ func main() { if err := os.WriteFile(filepath.Join(dir, "main.go"), []byte(mainSrc), 0o644); err != nil { t.Fatal(err) } - if err := os.WriteFile(filepath.Join(dir, "go.mod"), []byte("module goobjtest\n\ngo 1.26\n"), 0o644); err != nil { + if err := os.WriteFile(filepath.Join(dir, "go.mod"), []byte("module goobjtest\n\ngo 1.27\n"), 0o644); err != nil { t.Fatal(err) } diff --git a/docs/architecture.md b/docs/ARCHITECTURE.md similarity index 100% rename from docs/architecture.md rename to docs/ARCHITECTURE.md diff --git a/docs/cli.md b/docs/CLI.md similarity index 100% rename from docs/cli.md rename to docs/CLI.md diff --git a/docs/decisions.md b/docs/DECISIONS.md similarity index 100% rename from docs/decisions.md rename to docs/DECISIONS.md diff --git a/docs/development.md b/docs/DEVELOPMENT.md similarity index 98% rename from docs/development.md rename to docs/DEVELOPMENT.md index b1e1e09..cdf66ae 100644 --- a/docs/development.md +++ b/docs/DEVELOPMENT.md @@ -4,7 +4,7 @@ Repository: [sourcedock.dev/petrbalvin/gasm-devkit](https://sourcedock.dev/petrb ## Prerequisites -- **Go** 1.26+ with `toolchain go1.26.5` +- **Go** 1.27+ with `toolchain go1.27.0` - **just** — the command runner; every task below is a just recipe - No external dependencies beyond the Go toolchain diff --git a/go.mod b/go.mod index ddfa0ca..2ad9bdf 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module sourcedock.dev/petrbalvin/gasm-devkit -go 1.26 +go 1.27 -toolchain go1.26.5 +toolchain go1.27.0 require golang.org/x/arch v0.29.0