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

bin/build: speed-up local build time #18

Merged
merged 1 commit into from
Feb 24, 2016
Merged

bin/build: speed-up local build time #18

merged 1 commit into from
Feb 24, 2016

Conversation

fsouza
Copy link
Collaborator

@fsouza fsouza commented Feb 24, 2016

In case we have GOPATH defined, we probably have the dependencies, than
we don't need to download them again. It still works as expected in a
box with no GOPATH defined.

It's way faster to avoid downloading the dependencies. This is because
go get is dumb when cloning Git repositories. This should probably
change when golang/go#13078 is fixed (Go 1.7, hopefully).

In case we have GOPATH defined, we probably have the dependencies, than
we don't need to download them again. It still works as expected in a
box with no GOPATH defined.

It's way faster to avoid downloading the dependencies. This is because
`go get` is dumb when cloning Git repositories. This should probably
change when golang/go#13078 is fixed (Go 1.7, hopefully).
@marzagao
Copy link
Contributor

LGTM

marzagao added a commit that referenced this pull request Feb 24, 2016
bin/build: speed-up local build time
@marzagao marzagao merged commit 30ae96a into master Feb 24, 2016
@marzagao marzagao deleted the local-build branch February 24, 2016 16:45
@balser
Copy link
Contributor

balser commented Feb 24, 2016

Nice, the reason there was a tmp dir there before was because I envisioned this running on a CI server. Even if it does, ideally there will be a cache volume. This is a good thing to test when we setup drone. 👍

@fsouza
Copy link
Collaborator Author

fsouza commented Feb 24, 2016

@balser yes, definitely. We could probably have the volume cached from the job that run the tests, since we need to download the dependencies for running the tests. Then we set GOPATH to this volume.

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.

3 participants