glide: output correct version (#22896)

It currently displays `0.12.0-dev` instead of the specified
version.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2017-02-17 12:08:54 +01:00 committed by Robin Gloster
parent a9584c9510
commit 834de6ebaa

View File

@ -6,6 +6,11 @@ buildGoPackage rec {
goPackagePath = "github.com/Masterminds/glide";
buildFlagsArray = ''
-ldflags=
-X main.version=${version}
'';
src = fetchFromGitHub {
rev = "v${version}";
owner = "Masterminds";