diff --git a/README.md b/README.md index 7b2d3fa..48d09e0 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you prefer to compile from source or are contributing to the project, you can install `kuadrantctl` using `go install` or `make install`. This method requires Golang 1.21 or newer. ```bash -go install github.com/kuadrant/kuadrantctl@latest +VERSION=$(git rev-parse --short=7 HEAD) go install -ldflags='-X "github.com/kuadrant/kuadrantctl/version.Version=dev - '$VERSION'"' 'github.com/kuadrant/kuadrantctl' ``` This command will compile `kuadrantctl` and install the binary executable in `$GOBIN` (defaulting to `$GOPATH/bin`).