Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
Be more permissive with 0.x.y dependencies (#756)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ramon Nogueira authored May 22, 2018
1 parent 0ac18d6 commit 0edc045
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 0edc045

Please sign in to comment.