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 upPrometheus Golang Dependency Resolution #4468
Comments
This comment has been minimized.
This comment has been minimized.
|
This is why we vendor - because external dependencies can change or vanish at any time ;) For example, the You could vendor it at the same revision using |
This comment has been minimized.
This comment has been minimized.
|
Closing this as it seems to be answered and is not a Prometheus issue. Please reopen if you think this was a mistake. |
juliusv
closed this
Aug 6, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
swtch1 commentedAug 6, 2018
Bug Report
What did you do?
I tried to use dep to resolve dependencies, and also tried to use go modules with the go1.11 beta 3 to get the code.
In trying to use Prometheus as a library (using data structures and methods for config and rulefmt validation) I am seeing several libraries whose code only exists within the prometheus/vendor folder. These are the primary examples:
The crux of the issue is that this doesn't work:
go get github.com/Azure/azure-sdk-for-go/arm/computewhich is a dependency.What did you expect to see?
I expected for dependencies in prometheus/vendor to be externally resolvable.
What did you see instead? Under which circumstances?
I saw that these dependencies are not resolvable and do not exist, as far as I can tell, outside of the prometheus/vendor directory.
Environment
Windows 10 x64
System information:
MINGW64_NT-10.0 2.10.0(0.325/5/3) x86_64
Prometheus version:
prometheus 2.3.2
General Question
This code is not obviously prometheus specific. Does this code in fact exist somewhere else that I can effectively resolve?