trickster icon indicating copy to clipboard operation
trickster copied to clipboard

Include Vendor libraries in Repo

Open LimitlessEarth opened this issue 7 years ago • 4 comments

The vendored dependancies should be included in the github repo.

This will have a couple of quality of life improvements:

  • Faster CI - no redownloading on every run
  • Faster Docker build - no redownloading on every build in the 2-step Dockerfile
  • etc.

Most of the projects I have worked on do it and I have not had issue. Prometheus does it as well. https://github.com/prometheus/prometheus/tree/master/vendor

LimitlessEarth avatar Aug 14 '19 15:08 LimitlessEarth

If there are no objections from the community, I am fine with this. Is this just a matter of removing vendor from .gitignore and git adding?

jranson avatar Aug 15 '19 23:08 jranson

@jranson yes, thats it :)

Also as an added benefit you avoid any possibility of an upstream tag/branch change breaking your builds -- which is nice (I have had that issue happen a couple of times before).

jacksontj avatar Aug 21 '19 15:08 jacksontj

@jacksontj @LimitlessEarth ready to go in #269

jranson avatar Aug 26 '19 15:08 jranson

Merged #269 to next

jranson avatar Sep 06 '19 15:09 jranson