skaffold: use src.rev

This commit is contained in:
Mario Rodas 2020-07-02 20:24:17 -05:00
parent 52c87393ea
commit d1565a01d0
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027

View File

@ -3,16 +3,15 @@
buildGoPackage rec {
pname = "skaffold";
version = "1.12.0";
# rev is the ${version} commit, mainly for skaffold version command output
rev = "931a70a6334436735bfc4ff7633232dd5fc73cc1";
goPackagePath = "github.com/GoogleContainerTools/skaffold";
subPackages = ["cmd/skaffold"];
buildFlagsArray = let t = "${goPackagePath}/pkg/skaffold"; in ''
-ldflags=
-s -w
-X ${t}/version.version=v${version}
-X ${t}/version.gitCommit=${rev}
-X ${t}/version.gitCommit=${src.rev}
-X ${t}/version.buildDate=unknown
'';