Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uputil/promlint: consider moving to github.com/prometheus/common #5317
Comments
mdlayher
referenced this issue
Mar 8, 2019
Open
promlint: initial copy from github.com/prometheus/prometheus/util/pro… #175
This comment has been minimized.
This comment has been minimized.
|
Talked with @SuperQ on IRC and it appears I was wrong about needing to vendor the entire repo.
I do still think it'd be reasonable to move this to common, though. |
This comment has been minimized.
This comment has been minimized.
|
It's only used in one of our repos, so I see no need to move it to common. Common is for stuff shared across our repos. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mdlayher commentedMar 8, 2019
Proposal
I originally added
promlintfor use inpromtool check metrics. It is very useful for that purpose, however, it would also be nice to allow the package to be easily vendored and used in other applications for unit tests and such.Because this main Prometheus repository is fairly large and also contains a great deal of unrelated code, I propose moving
util/promlinttogithub.com/prometheus/common/promlintor similar. This way, library code lives with a library instead of an entire application, and is much easier to vendor.At that point, we can vendor in the updated copy of
commonand switch the import statements used withinpromtool.