-
Notifications
You must be signed in to change notification settings - Fork 29
Use dep
to manage dependencies
#90
Use dep
to manage dependencies
#90
Conversation
Currently the image inspector uses the `trash` tool to manage the dependencies, using the `vendor.conf` file to declare them, and commiting `vendor` directory to the source code repository. This patch changes the project to use the `dep` tool and removes the `vendor` directory from the source code repository. The dependencies will be downloaded by the `dep` tool when running `make`. Signed-off-by: Juan Hernandez <juan.hernandez@redhat.com>
@jhernand what are the benefits of commiting the file |
The advantage of having the |
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 am very much for this,
When we moved to trash there was no clear standard but dep
seems to be it now.
Also, not including vendor
directory is a nice move in my opinion. It will be lighter repository and clearer for PRs that are adding/changing dependencies.
My understanding from #68 and from how As for #85, I think it will actually improve it a lot; the commit will go from 912 changed files to less than 20, which is good for review, for example. |
We can also change the way that we build the container image to not copy the whole project and build it on the image, but create the binary file locally and only copy that. |
Indeed, actually I wanted to do exactly that, and this was the first step. |
👍 for dep. |
To overcome the problem with the docker hub auto-build we could maybe modify the Travis configuration so that it builds and pushes the image to docker hub. |
@jhernand: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Currently the image inspector uses the
trash
tool to manage thedependencies, using the
vendor.conf
file to declare them, andcommiting
vendor
directory to the source code repository.This patch changes the project to use the
dep
tool and removes thevendor
directory from the source code repository. The dependencieswill be downloaded by the
dep
tool when runningmake
.