Skip to content

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

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

ktock merged 2 commits into
containerd:mainfrom
thaJeztah:no_sync

Conversation

@thaJeztah

Copy link
Copy Markdown
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

@ktock ktock left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

Thx! Rebased 🤞

@ktock ktock left a comment

Copy link
Copy Markdown
Member

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