diff --git a/CHANGELOG.md b/CHANGELOG.md index 13aaa8f..403df79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## UNRELEASED +### Changed +- Ad Gopenpgp and Xmppsrv version to `--version` output (requires xmppsrv >= 0.3.2). ## [v0.11.1] 2024-07-11 ### Changed diff --git a/main.go b/main.go index ee3e8b0..12bff0a 100644 --- a/main.go +++ b/main.go @@ -19,9 +19,11 @@ import ( "strings" "time" - "github.com/ProtonMail/gopenpgp/v2/crypto" // MIT License - "github.com/pborman/getopt/v2" // BSD-3-Clause - "github.com/xmppo/go-xmpp" // BSD-3-Clause + gopenpgpConst "github.com/ProtonMail/gopenpgp/v2/constants" // MIT License + "github.com/ProtonMail/gopenpgp/v2/crypto" // MIT License + "github.com/pborman/getopt/v2" // BSD-3-Clause + "github.com/xmppo/go-xmpp" // BSD-3-Clause + "salsa.debian.org/mdosch/xmppsrv" // BSD-2-Clause ) type configuration struct { @@ -149,6 +151,8 @@ func main() { case *flagVersion: // If requested, show version and quit. fmt.Println("Go-sendxmpp", version) + fmt.Println("Xmppsrv library version:", xmppsrv.Version) + fmt.Println("Gopenpgp library version:", gopenpgpConst.Version) system := runtime.GOOS + "/" + runtime.GOARCH fmt.Println("System:", system, runtime.Version()) fmt.Println("License: BSD-2-clause")