Skip to content

fix(cri): fix unexpected order of mounts since go 1.19#10021

Merged
mxpv merged 1 commit intocontainerd:mainfrom
sctb512:fix-unstable-sort
Apr 2, 2024
Merged

fix(cri): fix unexpected order of mounts since go 1.19#10021
mxpv merged 1 commit intocontainerd:mainfrom
sctb512:fix-unstable-sort

Conversation

@sctb512
Copy link
Copy Markdown
Member

@sctb512 sctb512 commented Mar 30, 2024

Since the commit of golang/go@72e77a7 in Golang 1.19, the order of mounts is unexpected. In some situations, this leads to unexpected results.

This PR changes sort.Sort() to sort.Stable() to keep the order of mounts stable after sorting.

Fix #9978

@mxpv mxpv added this pull request to the merge queue Apr 1, 2024
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 1, 2024
@samuelkarp samuelkarp added this pull request to the merge queue Apr 1, 2024
@samuelkarp samuelkarp added the area/cri Container Runtime Interface (CRI) label Apr 1, 2024
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 2, 2024
@estesp estesp added this pull request to the merge queue Apr 2, 2024
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 2, 2024
@mxpv mxpv added this pull request to the merge queue Apr 2, 2024
Merged via the queue into containerd:main with commit 0807efb Apr 2, 2024
@chrishenzie chrishenzie added cherry-picked/1.6.x PR commits are cherry-picked into release/1.6 branch cherry-picked/1.7.x PR commits are cherry-picked into release/1.7 branch labels Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cri Container Runtime Interface (CRI) cherry-picked/1.6.x PR commits are cherry-picked into release/1.6 branch cherry-picked/1.7.x PR commits are cherry-picked into release/1.7 branch size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cannot create a new container with docker inside container

7 participants