You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Remove sync.WaitGroup.Go from spawnerlabel tests for Go 1.24 compatibility
sync.WaitGroup.Go() was added in Go 1.25, so remove it from spawnerlabel
tests to maintain compatibility with Go 1.24.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
// [BAD]: Missing label - calls sync.WaitGroup.Go with func arg
37
-
funcmissingLabelWaitgroup() { // want `function "missingLabelWaitgroup" should have //goroutinectx:spawner directive \(calls sync\.WaitGroup\.Go with func argument\)`
38
-
varwg sync.WaitGroup
39
-
wg.Go(func() {
40
-
fmt.Println("work")
41
-
})
42
-
wg.Wait()
43
-
}
44
-
45
35
// [BAD]: Missing label - calls gotask.DoAllFnsSettled with func arg
46
36
funcmissingLabelGotaskDoAll(ctx context.Context) { // want `function "missingLabelGotaskDoAll" should have //goroutinectx:spawner directive \(calls gotask\.DoAllFnsSettled with func argument\)`
0 commit comments