-
Notifications
You must be signed in to change notification settings - Fork 1.5k
vndr github.com/docker/docker from components/engine #116
Conversation
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
| @@ -1,98 +0,0 @@ | |||
| package opts | |||
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.
this was removed in moby/moby#33296
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.
i traced the sequence of events and it looks like this missing vendor change is a result of creating the docker-ce 17.06 branch before the cli was re-vendored. here is the sequence of events:
- May 19: merge Remove more opts unused in docker/docker moby/moby#33296 to moby/moby which removed
opts/config.go - May 19: create docker-ce 17.06 branch
- Jul 7: re-vndr docker/docker to remove
opts/config.gofromvendordocker/cli@44ac808
|
|
||
| import ( | ||
| "fmt" | ||
| "math/big" |
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.
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.
same reason as #116 (comment), vendor was not in sync when 17.06 branch was created
| @@ -1,111 +0,0 @@ | |||
| package opts | |||
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.
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.
same reason as #116 (comment), vendor was not in sync when 17.06 branch was created
| "github.com/docker/docker/pkg/ioutils" | ||
| ) | ||
|
|
||
| const buffer32K = 32 * 1024 |
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.
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.
| "github.com/pkg/errors" | ||
| ) | ||
|
|
||
| type gitRepo struct { |
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.
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.
this change we definitely need to get in to fix stuff to do stuff
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.
cause of this discrepancy is same reason as #116 (comment): PR #100 should have had another commit to update components/cli/vendor
| import "C" | ||
|
|
||
| // Termios is the Unix API for terminal I/O. | ||
| // It is passthrough for syscall.Termios in order to make it portable with |
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.
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.
same reason as #116 (comment), vendor was not in sync when 17.06 branch was created
| // installCliPlatformFlags handles any platform specific flags for the service. | ||
| func (options *ServiceOptions) installCliPlatformFlags(flags *pflag.FlagSet) { | ||
| flags.BoolVar(&options.V2Only, "disable-legacy-registry", false, "Disable contacting legacy registries") | ||
| flags.BoolVar(&options.V2Only, "disable-legacy-registry", true, "Disable contacting legacy registries") |
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.
moby/moby#33629 (cherry-pick: #71)
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.
cause of this discrepancy is same reason as #116 (comment): PR #71 should have had another commit to update components/cli/vendor
| func (m *MountPoint) Setup(mountLabel string, rootUID, rootGID int) (path string, err error) { | ||
| // The, optional, checkFun parameter allows doing additional checking | ||
| // before creating the source directory on the host. | ||
| func (m *MountPoint) Setup(mountLabel string, rootUID, rootGID int, checkFun func(m *MountPoint) error) (path string, err error) { |
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.
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.
Looks like PR #48 should have had another commit to update components/cli/vendor
|
I linked the related PR's either upstream (moby/moby) and/or the cherry-picks in components/engine |
thaJeztah
left a comment
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
ping @andrewhsu still "WIP"?
|
I'm ok to have this PR in as a stop gap measure for now to get these guys in sync, but we have to think about a way to get the vendor dir updated on a more regular basis. |
|
@tiborvass fyi |
|
By now we probably should do the same again (various PR's were merged)? |
|
I opened my version at #148 |
|
I've scrubbed all of the comments put in by @thaJeztah (thanks for digging into it) and found that the discrepancies between
For the first item, I suggest we setup a regular vendor sync in docker/cli repo to vendor changes from moby/moby /cc @dnephin For the second item, I suggest we setup automatic vendor check to make sure code changes to So, I'm gong to close this PR in favor of #148 since it synced up the vendor directory a little later in time than this PR and caught 2 more vendor mismatches. |
|
Why is vendor mismatch a problem if the tests pass? |
[18.06] Remove Debian Jessie for arm64 Upstream-commit: 68e62582600895376c743e0e6b7e3df3478cd0b9 Component: packaging
…al_templates [18.09 backport] apparmor: allow receiving of signals from 'docker kill' Upstream-commit: 12b8ec42b6ac60188ac48137677ee69ce98a3822 Component: engine
Found differences between the engine and the cli vendor of engine in the docker-ce 17.06 branch. This PR will vendor github.com/docker/docker from
components/enginedir.