vmware-archive / kubecfg

A tool for managing complex enterprise Kubernetes environments as code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect `kubecfg version` for 0.9.1

jjo opened this issue · comments

From a fresh downloaded kubecfg-linux-amd64 v0.9.1 binary:

$ kubecfg version
kubecfg version: (dev build)
jsonnet version: v0.9.5
client-go version: v1.8.1+$Format:%h$

@jjo can you please check that you got the right file?

I downloaded the file again and:

$ sha256sum ~/Downloads/kubecfg-linux-amd64
c972b52893794ccd49adfc9d7b69e2d388c0c91c4837e194de7cdf0d67b2baf8  /Users/mkm/Downloads/kubecfg-linux-amd64
$ curl -L -o/tmp/kubecfg-linux-amd64.2 https://github.com/ksonnet/kubecfg/releases/download/v0.9.1/kubecfg-linux-amd64
$ sha256sum /tmp/kubecfg-linux-amd64.2
c972b52893794ccd49adfc9d7b69e2d388c0c91c4837e194de7cdf0d67b2baf8  /tmp/kubecfg-linux-amd64.2
$ GOOS=linux CGO_ENABLED=0 go build -o /tmp/kubecfg-linux-amd64 -tags netgo -installsuffix netgo -ldflags="-X main.version=v0.9.1 -s -w " .
$ sha256sum /tmp/kubecfg-linux-amd64
c972b52893794ccd49adfc9d7b69e2d388c0c91c4837e194de7cdf0d67b2baf8  /tmp/kubecfg-linux-amd64
$ docker run -ti -v /tmp:/app ubuntu
root@67103586f117:/# /app/kubecfg-linux-amd64 version
kubecfg version: v0.9.1
jsonnet version: v0.10.0
client-go version: v0.0.0-master+$Format:%h$

doH ... my bad, ~/go/bin/kubecfg previously in $PATH,
sorry for the noise (!).