This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
Make version="v1.2.3" and version="=v1.2.3" equivalent or throw an error #929
Closed
Description
What version of Go (go version
) and dep
(git describe --tags
) are you using?
go version go1.8.3 linux/amd64
dep v0.1.0-310-g8a46f4d
What dep
command did you run?
dep ensure
with Gopkg.toml containing:
[[constraint]]
name = "upper.io/db.v3"
version = "v3.2.2"
What did you expect to see?
version tagged with v3.2.2
in vendor OR an error message about invalid version syntax
What did you see instead?
latest version - v3.3.1
at the time I run the command - in vendor
I know that the version constraint syntax to lock to a specific version is =version
(so I should have had version = "=v3.2.2"
in my Gopkg.toml), but silently installing a different version is not OK. Dep should IMO either fail with invalid version error (and maybe a hint) or make the two options equivalent.