Skip to content

estargz: Build: replace golang.org/x/sync with WaitGroup.Go (go1.25)#2249

Merged
ktock merged 2 commits intocontainerd:mainfrom
thaJeztah:no_sync
Feb 16, 2026
Merged

estargz: Build: replace golang.org/x/sync with WaitGroup.Go (go1.25)#2249
ktock merged 2 commits intocontainerd:mainfrom
thaJeztah:no_sync

Conversation

@thaJeztah
Copy link
Member

estargz: Build: remove redundant mutex

each goroutine writes to a distinct index, so it looks like there's
no need to use a mutex here.

estargz: Build: replace golang.org/x/sync with WaitGroup.Go (go1.25)

It was only using minimal functionality of the errgroup (and didn't
use, e.g. errgroup.WithContext). Rewrite it with a sync.WaitGroup
from stdlib.

Also update to go1.25 and use WaitGroup.Go

Copy link
Member

@ktock ktock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase to pass CI

each goroutine writes to a distinct index, so it looks like there's
no need to use a mutex here.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
It was only using minimal functionality of the errgroup (and didn't
use, e.g. `errgroup.WithContext`). Rewrite it with a sync.WaitGroup
from stdlib.

Also update to go1.25 and use WaitGroup.Go

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

Thx! Rebased 🤞

Copy link
Member

@ktock ktock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@ktock ktock merged commit 376ae59 into containerd:main Feb 16, 2026
83 of 85 checks passed
@thaJeztah thaJeztah deleted the no_sync branch February 16, 2026 13:23
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