Skip to content
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

Move docker module vendor files to root folder #4362

Closed
wants to merge 1 commit into from

Conversation

exekias
Copy link
Contributor

@exekias exekias commented May 19, 2017

Move docker vendored files to the project root, we are using them in other places, like #4352

@exekias
Copy link
Contributor Author

exekias commented May 19, 2017

@exekias exekias force-pushed the docker-vendor-to-root branch from deb8bee to 6ef9880 Compare May 19, 2017 13:17
@exekias exekias force-pushed the docker-vendor-to-root branch from 6ef9880 to 6e21c99 Compare May 19, 2017 13:50
@@ -10,6 +10,57 @@ Third party libraries used by the Beats project:


--------------------------------------------------------------------
github.com/Microsoft/go-winio
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume the change to the notice file is mainly to reordering. Perhaps we should find a way to sort the Notice entries in the future to not have duplicates and always the same sort order (alphabetical).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this is caused by the way we generate NOTICE file

},
{
"checksumSHA1": "QndA9F9cJjk2u2SZ/T1xsHSfmrU=",
"origin": "github.com/ruflin/go-dockerclient",
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm thinking to keep this one in this vendor directory as it is not used in all the other implementation. Also I hope to get rid of it in the long run ...

@@ -0,0 +1,13 @@
name: sarama
Copy link
Contributor

Choose a reason for hiding this comment

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

why was shopify dependency touched?

@@ -0,0 +1,20 @@
Interface,interface{},"something",nil,Inter
Copy link
Contributor

Choose a reason for hiding this comment

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

why was testify touched?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure, I just did govendor sync, so I think they were outdated or manually changed?

Copy link
Contributor

Choose a reason for hiding this comment

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

You are right, that is quite strange, because they are not updated in the vendor.json file?!? Glad you cleaned that up.

"revision": "929412ddf58668dc5aa49e47fa822507f048d34b",
"revisionTime": "2017-04-20T15:30:38Z"
},
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting that indentation was off in the file. Did you edit it manually before?

{
"checksumSHA1": "QndA9F9cJjk2u2SZ/T1xsHSfmrU=",
"origin": "github.com/ruflin/go-dockerclient",
"path": "github.com/fsouza/go-dockerclient",
Copy link
Contributor

Choose a reason for hiding this comment

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

I would leave the local as I want to better get rid of this instead of making it available global ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will move go-dockerclient back to docker module

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried and failed, govendor would force me to put all its dependencies back in or manually remove them + edit vendor.json

so I'm more in favor of keeping it under root, WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

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

You should be able to remove it if you add the docker client to the ignore list in docker. I prefer to not have it in the global dir.

"path": "golang.org/x/net/context/ctxhttp",
"revision": "e90d6d0afc4c315a0d87a568ae68577cc15149a0",
"revisionTime": "2016-07-15T16:59:30Z"
"revision": "ffcf1bedda3b04ebb15a168a59800a73d6dc0f4d",
Copy link
Contributor

Choose a reason for hiding this comment

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

As this was already used, one option to make the PR smaller would be to keep it to the same version. But seeing the version is quite old, probably a good time to update.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I guess it's better to update having that go-dockerclient makes use of it

@ruflin
Copy link
Contributor

ruflin commented May 22, 2017

@exekias I update the vendor directory with few PR's:

  • Cleanup of not used files
  • Make NOTICE file alphabetically sorted
  • Bring it up-to-date with sync

You probably have to rebase this PR. If you like I can look into the moving of the docker files.

@exekias
Copy link
Contributor Author

exekias commented May 29, 2017

Closing in favor of #4352, as dependencies are too interlaced, I removed duplicated vendors there, after adding the new client

@exekias exekias closed this May 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants