-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove hcsshim import from repo #10
Conversation
9df5dad
to
7e7a27f
Compare
Wondering if we should just copy the whole |
osversion package is used quite a bit on hcsshim repo and I don't think we want to copy it over to containerd/platforms. Having it in hcsshim repo also gives us the ability to extend/add functionality instead of opening PRs on the containerd/platform repo. |
Thanks for opening this. The needed logic is small enough that we should just maintain it here. Can we get away with making the os version struct and all the functions that use it private, that would help us make sure this package isn't getting used just for handling the version strings. |
So, I don't think we want to remove it there, but importing This PR will help a lot in that respect, but my thinking was if it would mirror the essentials (so all the consts, and, basically a mirror of the upstream package), that could allow easier updating, and provide Having it in a |
7e7a27f
to
5a36c05
Compare
The change that is needed by containerd is only the one function for platform matching code. I don't think we want to maintain a mirror of the whole osversion package from hcsshim and add more maintenance of keeping it upto date etc. The only reason checkHostAndContainerCompat() was that platforms package was part of containerd/containerd repo which already needs to import hcsshim. Since that has changed now, it will be easier to just maintain that single function in containerd/platforms. |
Updated PR with changes. |
1624683
to
92f15bb
Compare
Move windows CheckHostAndContainerCompat() function from hcsshim locally to platform repo itself Signed-off-by: Kirtana Ashok <[email protected]>
92f15bb
to
f680838
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, let's move forward with this, thanks!
LGTM
@dmcgowan could this PR be merged? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Move windows CheckHostAndContainerCompat() function from hcsshim locally to platform repo itself