Commit graph

7 commits

Author SHA1 Message Date
Eric Lippmann
7c068d4adf Use icinga-go-library 2024-05-24 09:56:28 +02:00
Alvar Penning
f0b7aa2d38
Bump version to 1.2.0 2024-04-11 13:23:34 +02:00
Julian Brost
62a01155c4 Update version number to 1.1.1 2023-08-07 15:53:20 +02:00
Julian Brost
cf561d786c Release 1.1.0 2022-11-07 13:57:34 +01:00
Julian Brost
c8a17ed048 Update internal/version.go for 1.0.0 2022-06-29 17:48:46 +02:00
Julian Brost
c6e843146f Add more information to icingadb --version ouput
This commit adds the build information (Go version, Git commit) and system
information (distribution with version) to the output of `icingadb --version`.

When exporting the source code using `git archive`, Git will insert the version
information using the export-subst attribute (adds both a pretty version string
like `git describe` and the commit hash).

`go build` also adds some Git commit information to the resulting binary when
building from a Git working directory (only the commit hash and a flag if there
are uncommitted changes, but no pretty version string).

Note that `go build` does not include Git version information in the binary, so
when running directly from a Git working directory, commit information won't be
available in the binary, but when doing this, you should be well aware which
version you're running anyways.

System information is obtained from the `os-release` file.
2022-05-23 16:03:56 +02:00
Alexander A. Klimov
31fd1963f2 Support --version
refs #335
2021-08-06 12:40:15 +02:00