Skip to content

How to handle /vendor and lock-files? #649

Answered by sh0rez
BeyondEvil asked this question in Q&A
Discussion options

You must be logged in to vote

This highly depends whether your project is consuming libraries (infra repo, etc), or is a library itself.

Consumers:
They should check in at least jsonnetfile.json and jsonnetfile.lock.json, as those are required to correctly reproduce the dependency graph of your project, which is crucial.

Whether to check in vendor itselfs depends on your liking. It has the benefit of easily reviewing changes in dependecies, as they are in the actual PR to your own repo, but it may increase repo size quite a bit.

Libraries:
They should only check in jsonnetfile.json, but not vendor or the lockFile.

Because grafana/jsonnet-libs is a collection of libraries and not a consumer of those, it does not have a…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BeyondEvil
Comment options

Answer selected by BeyondEvil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants