Skip to content

caser is not thread safe - #2474

Merged
adelowo merged 2 commits into
mainfrom
bug-caser-threadsafe
Jun 11, 2026
Merged

caser is not thread safe#2474
adelowo merged 2 commits into
mainfrom
bug-caser-threadsafe

Conversation

@golanglemonade

Copy link
Copy Markdown
Member

Should fix:


panic: runtime error: slice bounds out of range [7:6] [recovered, repanicked]
--
  | 2026-06-11 09:33:28 MDT |  
  | 2026-06-11 09:33:28 MDT | goroutine 67113 [running]:
  | 2026-06-11 09:33:28 MDT | testing.tRunner.func1.2({0x15a28240, 0x270f46b91518})
  | 2026-06-11 09:33:28 MDT | /usr/local/go/src/testing/testing.go:1974 +0x232
  | 2026-06-11 09:33:28 MDT | testing.tRunner.func1()
  | 2026-06-11 09:33:28 MDT | /usr/local/go/src/testing/testing.go:1977 +0x349
  | 2026-06-11 09:33:28 MDT | panic({0x15a28240?, 0x270f46b91518?})
  | 2026-06-11 09:33:28 MDT | /usr/local/go/src/runtime/panic.go:860 +0x13a
  | 2026-06-11 09:33:28 MDT | golang.org/x/text/transform.String({0x7bc84dc7c760, 0x270f3def6b40}, {0x16ee3e5b, 0x6})
  | 2026-06-11 09:33:28 MDT | /var/lib/buildkite-agent/.cache/go/pkg/mod/golang.org/x/text@v0.37.0/transform/transform.go:650 +0xb0f
  | 2026-06-11 09:33:28 MDT | golang.org/x/text/cases.Caser.String(...)
  | 2026-06-11 09:33:28 MDT | /var/lib/buildkite-agent/.cache/go/pkg/mod/golang.org/x/text@v0.37.0/cases/cases.go:51

ref: golang/go#55032 (comment)

Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
@golanglemonade
golanglemonade requested a review from a team as a code owner June 11, 2026 15:47
@github-actions github-actions Bot added bug Something isn't working cli common labels Jun 11, 2026
adelowo
adelowo previously approved these changes Jun 11, 2026
@adelowo
adelowo enabled auto-merge (squash) June 11, 2026 15:49
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

@adelowo
adelowo merged commit 9ee99db into main Jun 11, 2026
20 checks passed
@adelowo
adelowo deleted the bug-caser-threadsafe branch June 11, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cli common

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants