Skip to content

Go 1.26 - #35

Merged
azazeal merged 12 commits into
masterfrom
go1.26
Sep 4, 2026
Merged

Go 1.26#35
azazeal merged 12 commits into
masterfrom
go1.26

Conversation

@azazeal

@azazeal azazeal commented Sep 4, 2026

Copy link
Copy Markdown
Owner

This PR bumps the minimum required Go version to 1.26.

Additionally, it reworks Caller.Call around a channel the writer closes, which drops the golang.org/x/sync dependency and stops a panic in fn from leaving its key stuck.

Finally, the PR adds Caller.MaybeKeyFromContext, refactors the test suite to use testing/synctest, and brings in a release script.

Readers now wait on a channel the writer closes, instead of a weighted
semaphore. The cleanup is deferred, so a panic in fn no longer leaves
the key stuck; readers re-raise the panic instead.

Also added Caller.MaybeKeyFromContext, rewrote the docs, and added a
test for the panic path.
@coveralls

coveralls commented Sep 4, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 33868462064

Coverage decreased (-1.7%) to 98.333%

Details

  • Coverage decreased (-1.7%) from the base build.
  • Patch coverage: 1 uncovered change across 1 file (33 of 34 lines covered, 97.06%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
singleflight.go 34 33 97.06%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 60
Covered Lines: 59
Line Coverage: 98.33%
Coverage Strength: 14.35 hits per line

💛 - Coveralls

@azazeal
azazeal marked this pull request as ready for review September 4, 2026 11:39
@azazeal
azazeal merged commit 0d9c131 into master Sep 4, 2026
10 checks passed
@azazeal
azazeal deleted the go1.26 branch September 4, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants