Skip to content

Conversation

@euanh
Copy link
Contributor

@euanh euanh commented Jun 11, 2018

Update vendored dependencies to match the versions used by moby/moby

This change moves libnetwork's version of gocapability ahead of moby's, so moby will also have to be updated.

This pull request supersedes #2028

@GordonTheTurtle
Copy link

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:

$ git clone -b "update-vendoring" git@github.com:euanh/libnetwork.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842362453920
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

@euanh
Copy link
Contributor Author

euanh commented Jun 11, 2018

I'll squash the vendor.conf changes before merging. I want to keep them separate until CI gives the green light.

@codecov-io
Copy link

codecov-io commented Jun 12, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@809efce). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2183   +/-   ##
=========================================
  Coverage          ?   40.58%           
=========================================
  Files             ?      139           
  Lines             ?    22486           
  Branches          ?        0           
=========================================
  Hits              ?     9126           
  Misses            ?    12027           
  Partials          ?     1333
Impacted Files Coverage Δ
controller.go 36.65% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 809efce...3632e43. Read the comment docs.

@euanh euanh force-pushed the update-vendoring branch from 56f593d to 6efffe8 Compare June 13, 2018 08:42
@euanh euanh changed the title WIP: Update vendoring Update vendoring to match mody/moby Jun 13, 2018
@euanh euanh changed the title Update vendoring to match mody/moby Update vendoring to match moby/moby Jun 13, 2018
@selansen
Copy link
Contributor

LGTM

@fcrisciani
Copy link

I see you are touching the Dockerfile, I would like to prioritize the circle ci migration PR before this

@euanh
Copy link
Contributor Author

euanh commented Jun 19, 2018

@fcrisciani I'll move the Dockerfile change into another pull request (although it's just bumping the Go micro version, so I would hope it wouldn't cause problems). It would be good to get the rest of the changes in as soon as possible, before we start to fall behind moby/moby again.

@euanh euanh force-pushed the update-vendoring branch from 6efffe8 to 3632e43 Compare June 19, 2018 13:09
@fcrisciani
Copy link

@euanh can you rebase on latest master? so to have a run on the new CI infra?

github.com/godbus/dbus v4.0.0
github.com/gogo/protobuf v0.4
github.com/golang/protobuf 7a211bcf3bce0e3f1d74f9894916e6f116ae83b4
github.com/gogo/protobuf v1.0.0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we should regenerate the protobuf if we update the gogo library

@euanh euanh force-pushed the update-vendoring branch from 3632e43 to c65e497 Compare June 20, 2018 14:27
@fcrisciani
Copy link

@euanh can you also bring in the script or an automated way to do this operation next time?

@euanh
Copy link
Contributor Author

euanh commented Jun 21, 2018

@fcrisciani I used a bit of sed and awk to update the packages which were common between moby and libnetwork, but after that there was a bit of manual fiddling. I'm not sure it can be made fully automatic.

I'm planning to make a separate pull request to add an updater. I don't want this PR to get bogged down - that's why #2028 was never merged. We need to get this one in as soon as possible - it's already falling behind. :(

euanh added 2 commits June 21, 2018 15:08
moby/moby commit b27f70d45 wraps the ErrNotFound error returned when
a plugin cannot be found, to include a backtrace.   This changes the
type of the error, so contoller.loadDriver no longer converts it to a
libnetwork plugin.NotFoundError.  This causes a couple of tests which
inspect the return type to fail;  most code only checks whether the
error is non-nil and is not affected by the change in type.

Signed-off-by: Euan Harris <euan.harris@docker.com>
* Update dependencies to match moby master; add new sub-dependencies
  as necessary.

* Update moby to latest

* Update gocapability

  This moves gocapability beyond the version vendored in moby;
  presumably the code which requires this particular version
  is not used in moby and is removed by vndr.   Moby will need
  to be updated as well.

Signed-off-by: Euan Harris <euan.harris@docker.com>
@euanh euanh force-pushed the update-vendoring branch from c65e497 to d768021 Compare June 21, 2018 14:24
Copy link

@fcrisciani fcrisciani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fcrisciani fcrisciani merged commit 9a5f6cf into moby:master Jun 22, 2018
@euanh euanh deleted the update-vendoring branch June 22, 2018 16:15
@euanh euanh mentioned this pull request Jun 28, 2018
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