diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e4b73d0..23707275 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: "1.25.x" + go-version: "1.26.6" cache: true - name: Check formatting diff --git a/README.md b/README.md index 5136daef..ef628081 100644 --- a/README.md +++ b/README.md @@ -1016,9 +1016,9 @@ need Go or Codexometer's source dependencies. ## Versioning Codexometer follows semantic versioning; the current source version is -`v0.7.4`. The Git tag is the release source of truth. Go automatically embeds +`v0.7.5`. The Git tag is the release source of truth. Go automatically embeds that tag in binaries built with -`go install github.com/merefield/codexometer@v0.7.4`; direct source builds fall +`go install github.com/merefield/codexometer@v0.7.5`; direct source builds fall back to the maintained value in `internal/version/version.go`. Both forms report the embedded version and exit without starting the interface: @@ -1031,7 +1031,7 @@ codexometer --version Release automation can override the source-build fallback without editing code: ```sh -go build -ldflags="-s -w -X github.com/merefield/codexometer/internal/version.Fallback=0.7.4" . +go build -ldflags="-s -w -X github.com/merefield/codexometer/internal/version.Fallback=0.7.5" . ``` ## How refresh works @@ -1125,7 +1125,7 @@ go test -cover ./... Codexometer uses: -- Go 1.25+ +- Go 1.26.6+ - Bubble Tea for the terminal event loop - Lip Gloss for adaptive ANSI styling - Starlark for deterministic, hermetic benchmark-code evaluation diff --git a/go.mod b/go.mod index 9fd45410..3d35c397 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/merefield/codexometer -go 1.25.0 +go 1.26.6 require ( github.com/charmbracelet/bubbletea v1.2.4 diff --git a/internal/version/version.go b/internal/version/version.go index c867436e..2e1d3b9c 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -11,7 +11,7 @@ import ( // checkout. Release automation may override it with: // // -X github.com/merefield/codexometer/internal/version.Fallback=1.2.3 -var Fallback = "0.7.4" +var Fallback = "0.7.5" // Current returns the module version embedded by Go for tagged installs, or // Fallback for ordinary source builds. The leading tag prefix is omitted so diff --git a/internal/version/version_test.go b/internal/version/version_test.go index 1a8e4779..abeefdfc 100644 --- a/internal/version/version_test.go +++ b/internal/version/version_test.go @@ -4,8 +4,8 @@ import "testing" func TestCurrentReportsMaintainedFallbackForSourceBuild(t *testing.T) { got := Current() - if got != "0.7.4" { - t.Fatalf("Current() = %q, want 0.7.4", got) + if got != "0.7.5" { + t.Fatalf("Current() = %q, want 0.7.5", got) } } @@ -18,7 +18,7 @@ func TestSelectVersion(t *testing.T) { }{ {name: "tagged install", module: "v1.2.3", fallback: "0.2.0", want: "1.2.3"}, {name: "development build", module: "(devel)", fallback: "v0.2.0", want: "0.2.0"}, - {name: "Go 1.25 source pseudo-version", module: "v0.0.0-20260811151632-815179a0b2e7+dirty", fallback: "0.2.0", want: "0.2.0"}, + {name: "source pseudo-version", module: "v0.0.0-20260811151632-815179a0b2e7+dirty", fallback: "0.2.0", want: "0.2.0"}, {name: "pre-release tag", module: "v1.2.3-rc.1", fallback: "0.2.0", want: "1.2.3-rc.1"}, } for _, test := range tests { diff --git a/main_test.go b/main_test.go index 1607c8c5..ba7c0776 100644 --- a/main_test.go +++ b/main_test.go @@ -16,7 +16,7 @@ func TestRunVersion(t *testing.T) { for _, flag := range []string{"-v", "--version"} { var stdout, stderr bytes.Buffer code := run([]string{flag}, &stdout, &stderr, dependencies{}) - if code != 0 || stdout.String() != "codexometer v0.7.4\n" || stderr.Len() != 0 { + if code != 0 || stdout.String() != "codexometer v0.7.5\n" || stderr.Len() != 0 { t.Errorf("flag=%s code=%d stdout=%q stderr=%q", flag, code, stdout.String(), stderr.String()) } }