From 0edc045e110a4ba034ed03dffbbaf13eeae8b25b Mon Sep 17 00:00:00 2001 From: Ramon Nogueira Date: Tue, 22 May 2018 09:16:53 -0700 Subject: [PATCH] Be more permissive with 0.x.y dependencies (#756) By default, dep won't permit updates to minor versions for default version spec of versions less than 1.0.0. This causes headaches when combining OpenCensus with other <1.0.0 dependencies, like the GCP SDK. Since the Gopkg.toml exists primarily to permit ease of use of this library for dep users, it seems like a better tradeoff to be more permissive here, rather than force lock-step upgrades all the time. --- Gopkg.toml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Gopkg.toml b/Gopkg.toml index 2a60c24f0..c3f8292f7 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -1,6 +1,10 @@ +# For v0.x.y dependencies, prefer adding a constraints of the form: version=">= 0.x.y" +# to avoid locking to a particular minor version which can cause dep to not be +# able to find a satisfying dependency graph. + [[constraint]] name = "cloud.google.com/go" - version = "0.21.0" + version = ">=0.21.0" [[constraint]] branch = "master" @@ -13,11 +17,11 @@ [[constraint]] name = "github.com/openzipkin/zipkin-go" - version = "0.1.0" + version = ">=0.1.0" [[constraint]] name = "github.com/prometheus/client_golang" - version = "0.8.0" + version = ">=0.8.0" [[constraint]] branch = "master"