-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
build: all golang dependencies seem to be built every time #1177
Comments
It looks like
|
this will not get fixed until vendor verification is implemented in
also see golang/dep#121 |
One possibly workaround is to do the following:
this will only run ensure if the Gopkg.lock file has changed. This will not catch the case where files in the vendor directory have really changed or are non-existent, but these seem like infrequent cases. |
I would love to see any improvement we can make here @bassam to trim down the dev build iteration loop again. Your workaround looks pretty reasonable to me. |
hi folks - just saw this on a backlink on one of the dep issues. re: @bassam's workaround, #1177 (comment), i just wanted to quickly point you all to a draft plan for a command that will obviate the need for a hack like that. hopefully we'll be able to get that implemented in the next couple months. |
Build times seem to have increased recently and it appears that all packages (especially vendored ones) are being built every time. We expected a bit of a longer build because we are using
dep ensure
to ensure that our dependencies are always up to date, but that may have caused a regression (see #1149).My local build time seems to have increased to about 2 min every build, even when there are no changes to build.
This is a sample from a build i just ran immediately after a successful build prior to it, with no changes in between:
Note that all the vendored packages are listed in the build output instead of being skipped.
The text was updated successfully, but these errors were encountered: