Closed thbkrkr closed 3 months ago
Testing:
go install
from local sources.
> go install .
/u/k/d/s/g/e/crd-ref-docs support-version-go-install * krkr@fun
> crd-ref-docs -v
Version: (devel)
GitCommit: b78ab371d7dc70c27133eb266576f7021166eb5a
BuildDate: 2024-07-25T10:52:35Z
go install
from github.com. I'm surprised that the GitCommit and BuildDate are empty here.
> go install github.com/elastic/crd-ref-docs@v0.0.13-bc6
go: downloading github.com/elastic/crd-ref-docs v0.0.13-bc6
> crd-ref-docs -v
Version: v0.0.13-bc6
GitCommit: (unknown)
BuildDate: (unknown)
Downloading released binary.
> wget https://github.com/elastic/crd-ref-docs/releases/download/v0.0.13-bc6/crd-ref-docs_0.0.13-bc6_Darwin_arm64.tar.gz
> tar xvzf crd-ref-docs_0.0.13-bc6_Darwin_arm64.tar.gz
> ./crd-ref-docs -v
Version: v0.0.13-bc6
GitCommit: b78ab37
BuildDate: 2024-07-25T10:53:42Z
This makes the
version
command also works when the binary is installed usinggo install
.Follow-up of #78 and #84.