Skip to content

libcontainer: rm windows pieces#2700

Closed
kolyshkin wants to merge 3 commits intoopencontainers:masterfrom
kolyshkin:rm-win
Closed

libcontainer: rm windows pieces#2700
kolyshkin wants to merge 3 commits intoopencontainers:masterfrom
kolyshkin:rm-win

Conversation

@kolyshkin
Copy link
Copy Markdown
Contributor

(this used to be part of #2695)

This removes some Windows-only code from libcontainer. See individual commits for details.

@kolyshkin kolyshkin mentioned this pull request Dec 3, 2020
mrunalp
mrunalp previously approved these changes Dec 4, 2020
@kolyshkin kolyshkin changed the title libcontainer: rm windows pieces [DO NOT MERGE] libcontainer: rm windows pieces Dec 4, 2020
@kolyshkin
Copy link
Copy Markdown
Contributor Author

For context, this is DO NOT MERGE since @thaJeztah is currently looking into who's using this from Windows code. Once the Windows users are removed, this can be merged.

Nothing is in there, so removing.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This was initially added by commit d78ee47 but later
moved from libcontainer/configs to libcontainer/devices by
commit 677baf2.

Looks like since commit 677baf2 and also [1]
there is no use for this, thus removing.

[1] containers/buildah#2652

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Commit bf74951 added these two functions, but they are only used from
Windows code. The v1 of this patch moved these functions to _windows.go
file, but after some discussion we decided to drop windows code
altogether, so this is what this patch now does.

This fixes

> libcontainer/user/user.go:64:6: func `groupFromOS` is unused (unused)
> libcontainer/user/user.go:35:6: func `userFromOS` is unused (unused)

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin
Copy link
Copy Markdown
Contributor Author

rebased (for new CI)

@AkihiroSuda
Copy link
Copy Markdown
Member

Is this still DNM?

@thaJeztah
Copy link
Copy Markdown
Member

Ah, keep forgetting; I should try vendoring from this branch to see if (and where) things break

@AkihiroSuda
Copy link
Copy Markdown
Member

Once the Windows users are removed, this can be merged.

Can we merge this right now?
We don't guarantee Go compatibility of libcontainer. If something no longer compiles on Windows, the maintainers of that project just copy the deleted codes to their project.

@AkihiroSuda AkihiroSuda reopened this Feb 24, 2021
@AkihiroSuda AkihiroSuda added this to the 1.0.0-rc94 milestone Feb 24, 2021
@kolyshkin kolyshkin changed the title [DO NOT MERGE] libcontainer: rm windows pieces libcontainer: rm windows pieces Feb 26, 2021
@kolyshkin
Copy link
Copy Markdown
Contributor Author

I'm fine with merging this, but we need to hear back from @thaJeztah as we don't want to break Docker

thaJeztah added a commit to thaJeztah/cli that referenced this pull request Mar 13, 2021
testing if things break with opencontainers/runc#2700

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

Ah, sorry, forgot about this one; I think we should be fine, but opened docker/cli#3011 and moby/moby#42143, which vendor from this branch to see if things break

@thaJeztah
Copy link
Copy Markdown
Member

@kolyshkin I opened kolyshkin#9 against your branch with some fixes that were needed to make it work (moby/moby#42143). Also opened #2851 with other changes related to that

@thaJeztah
Copy link
Copy Markdown
Member

@kolyshkin I opened kolyshkin#9 against your branch with some fixes that were needed to make it work (moby/moby#42143). Also opened #2851 with other changes related to that

@kolyshkin could you have a look at kolyshkin#9 ? ^^

@thaJeztah
Copy link
Copy Markdown
Member

I rebased this one and included my patch from kolyshkin#9 in #2888

@cyphar
Copy link
Copy Markdown
Member

cyphar commented Apr 3, 2021

I'll close this in favour of #2888.

@cyphar cyphar closed this Apr 3, 2021
kolyshkin added a commit that referenced this pull request Apr 4, 2021
libcontainer: rm windows pieces (carry #2700)
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.

5 participants