From ab2e694a6878d93fb7a5cc87decd243ce653e33b Mon Sep 17 00:00:00 2001 From: Omer Preminger Date: Wed, 16 Sep 2026 02:33:06 -0400 Subject: [PATCH 1/5] chore: remove unused db-related leftovers from `stavefile.go` --- CHANGELOG.md | 6 ++++++ stavefile.go | 8 +------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f20c5fb..c289c56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.17.58] - 2026-09-16 + +### Removed + +- Removed db-related leftovers from `stavefile.go`. + ## [0.17.57] - 2026-09-15 ### Changed diff --git a/stavefile.go b/stavefile.go index 969f8fa..1973e00 100644 --- a/stavefile.go +++ b/stavefile.go @@ -39,14 +39,10 @@ const ( coverageOutFilename = "coverage.out" coverageHTMLFilename = "coverage.html" - - dbUpPollingInterval = 1 * time.Second - dbUpPollingTimeout = 20 * time.Second ) var ( - repoRoot string - devDBPath string + repoRoot string ) func init() { @@ -65,8 +61,6 @@ func init() { if err != nil { panic(fmt.Errorf("failed to get absolute path for repository root: %w", err)) } - - devDBPath = filepath.Join(repoRoot, ".devdb") } // ********************************************************************* From 1bb8cd39052e67edae25e018c1ad562c9f0f8733 Mon Sep 17 00:00:00 2001 From: Omer Preminger Date: Wed, 16 Sep 2026 02:41:15 -0400 Subject: [PATCH 2/5] chore(stavefile): log error when closing pipe writer in coverage conversion --- stavefile.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stavefile.go b/stavefile.go index 1973e00..0d12cd4 100644 --- a/stavefile.go +++ b/stavefile.go @@ -581,7 +581,12 @@ func (Test) Go(ctx context.Context) error { group, _ := errgroup.WithContext(ctx) group.Go(func() error { - defer pipeW.Close() + defer func(pipeW *io.PipeWriter) { + err := pipeW.Close() + if err != nil { + slog.Error("error closing pipe writer", "err", err) + } + }(pipeW) slog.Debug("converting coverage output to JSON...") if err := sh.Piper(nil, pipeW, os.Stderr, "go", "tool", "gocov", "convert", coverageOutFilename); err != nil { return fmt.Errorf("error converting %q to JSON: %w", coverageOutFilename, err) From 06243cd5a32cbfc05a1001ac9b96b6de001e457b Mon Sep 17 00:00:00 2001 From: Omer Preminger Date: Wed, 16 Sep 2026 02:44:25 -0400 Subject: [PATCH 3/5] chore: add `force_token` field to .goreleaser.yaml --- .goreleaser.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 913b0c6..5faf7ff 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -108,3 +108,5 @@ release: github: owner: preminger name: goctx + +force_token: github From 0b17e106048d9e147d9c1b88352e2c3ccdcd3391 Mon Sep 17 00:00:00 2001 From: Omer Preminger Date: Wed, 16 Sep 2026 02:54:20 -0400 Subject: [PATCH 4/5] chore: bump `stave` to `v0.17.1` --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 1eaaed9..44cf923 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/sebdah/goldie/v2 v2.8.0 github.com/spf13/cobra v1.10.2 github.com/stretchr/testify v1.12.1 - github.com/yaklabco/stave v0.17.0 + github.com/yaklabco/stave v0.17.1 golang.org/x/sync v0.23.0 golang.org/x/tools v0.50.0 ) diff --git a/go.sum b/go.sum index 14df37d..38f2170 100644 --- a/go.sum +++ b/go.sum @@ -147,8 +147,8 @@ github.com/xo/terminfo v1.2.0 h1:d0ZTOCpuGE0lwSAOs0zcJjwz3jWQyqcRt9XbGJpCOl4= github.com/xo/terminfo v1.2.0/go.mod h1:lGzkSo8Fe7IRh/w+Gqz7n5mDog4FVXCj3gy/DYTBqio= github.com/yaklabco/direnv/v2 v2.37.2-0.20260915190823-63179e7acdb7 h1:FbyprtPeV4uHT+z+g88+UAGVGGhlIkpoxDqY+Eoq3nI= github.com/yaklabco/direnv/v2 v2.37.2-0.20260915190823-63179e7acdb7/go.mod h1:sJDi3wKT+98Gbbbr1fsSl5MccL8PxZbRK5X6sX5RpNo= -github.com/yaklabco/stave v0.17.0 h1:iibB663DzgFAgd8qfIu3iv9UCsgcsq3ZhkSXAwjB4Lw= -github.com/yaklabco/stave v0.17.0/go.mod h1:TLXQ0Gu5k3VXjHU9WDleL35ww9+IQ+8JEdTmhHvRY20= +github.com/yaklabco/stave v0.17.1 h1:d9bojTfzBXxfxo37Bstk/UMUA5LPusUW7vkZLTlRt3w= +github.com/yaklabco/stave v0.17.1/go.mod h1:TLXQ0Gu5k3VXjHU9WDleL35ww9+IQ+8JEdTmhHvRY20= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= From a3787bd61451be999b877cf6cb107900bdc29082 Mon Sep 17 00:00:00 2001 From: Omer Preminger Date: Wed, 16 Sep 2026 02:54:27 -0400 Subject: [PATCH 5/5] chore: update CHANGELOG.md --- CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c289c56..5292cf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.17.58] - 2026-09-16 +### Added + +- Added `force_token: github` to `.goreleaser.yaml`, so that it works even when multiple git hosts' tokens are set in the environment. + ### Removed +- Bump `stave` to `v0.17.1`. - Removed db-related leftovers from `stavefile.go`. ## [0.17.57] - 2026-09-15 @@ -779,7 +784,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.4.0] - 2025-10-30 -[unreleased]: https://github.com/preminger/goctx/compare/v0.17.57...HEAD +[unreleased]: https://github.com/preminger/goctx/compare/v0.17.58...HEAD +[0.17.58]: https://github.com/preminger/goctx/compare/v0.17.57...v0.17.58 [0.17.57]: https://github.com/preminger/goctx/compare/v0.17.56...v0.17.57 [0.17.56]: https://github.com/preminger/goctx/compare/v0.17.55...v0.17.56 [0.17.55]: https://github.com/preminger/goctx/compare/v0.17.54...v0.17.55