Conversation
|
This is going to conflict heavily with #33362. I hope we can merge that first. It's a more involved change. Sorry I should have put that into the tracking issue. |
|
@dnephin ok no worries |
505cc18 to
4419045
Compare
|
@dnephin rebased. |
pkg/system/utils_unix.go
Outdated
There was a problem hiding this comment.
I don't think we should export this two line helper.
I believe with the suggested split up this won't need to be exported anymore, as the only consumers will be in pkg/system/user
There was a problem hiding this comment.
@dnephin so you would move the whole utils_unix.go to pkg/system/user ?
There was a problem hiding this comment.
The file is only these 2 functions, right? so yes I think it would all move to pkg/system/user.
pkg/fsutils/usergroupadd_linux.go
Outdated
There was a problem hiding this comment.
This is the part of the package that I thought would move to pkg/system. It doesn't have much to do with files.
This file could move to pkg/system/user/usergroupadd_linux.go
There was a problem hiding this comment.
This file could move to pkg/system/user/....go
pkg/fsutils/idtools_unix.go
Outdated
There was a problem hiding this comment.
This file needs to be split up.
LookupX() would go to pkg/system/user/usergroupadd_linux.go
The file stuff can stay in fsutil
pkg/fsutils/idtools.go
Outdated
There was a problem hiding this comment.
I think some of this file needs to be split up.
All the Mkdir... would be fsutils, but the ID stuff probably makes more sense in system/user/
The file stiff can stay in fsutil
pkg/system/utils_unix.go
Outdated
There was a problem hiding this comment.
I believe with the suggested split up this won't need to be exported anymore, as the only consumers will be in pkg/system/user
Signed-off-by: Victor Vieux <[email protected]>
|
ping @vieux this needs a rebase |
|
@thaJeztah yup, @dnephin will carry the PR, assigning to him. |
|
ping @dnephin ^^ |
|
This seems fairly low priority given the new path for the engine. I'm going to close this PR for now. It's still on my list. |
See #32989
Split
"github.com/docker/docker/pkg/idtoolsbetweengithub.com/docker/docker/pkg/fsutils1 andgithub.com/docker/docker/pkg/system`