From 5eaed275ab5dab7da2c1fd25da7419f8342977cc Mon Sep 17 00:00:00 2001 From: Saxon Nelson-Milton Date: Wed, 8 Feb 2023 21:05:08 +1030 Subject: [PATCH] Bump required iot version in go.mod Also track version and display on start up. --- cmd/rv/main.go | 5 +++++ go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cmd/rv/main.go b/cmd/rv/main.go index 28c15a14..841ed3a0 100644 --- a/cmd/rv/main.go +++ b/cmd/rv/main.go @@ -74,6 +74,9 @@ import ( "bitbucket.org/ausocean/utils/logging" ) +// Current software version. +const version = "v1.4.5" + // Copyright information prefixed to all metadata. const ( metaPreambleKey = "copyright" @@ -136,6 +139,8 @@ func main() { // lumberjack and netloggers. log := logging.New(logVerbosity, io.MultiWriter(fileLog, netLog), logSuppress) + log.Info("starting rv", "version", version) + // If rv has been built with the profile tag, then we'll start a CPU profile. if canProfile { profile(log) diff --git a/go.mod b/go.mod index b94dd41d..5ab9a2f5 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module bitbucket.org/ausocean/av go 1.18 require ( - bitbucket.org/ausocean/iot v1.4.0 + bitbucket.org/ausocean/iot v1.4.1 bitbucket.org/ausocean/utils v1.3.2 github.com/Comcast/gots v0.0.0-20190305015453-8d56e473f0f7 github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf diff --git a/go.sum b/go.sum index 27504d0d..14ebc41f 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,6 @@ bitbucket.org/ausocean/iot v1.3.0/go.mod h1:rRcWt6SoM/jgIZpP1zrpnKb5BhxIMulAJ+q1xTvLh94= -bitbucket.org/ausocean/iot v1.4.0 h1:DzySaszy8dPGv7eb5cdigAfm3d3y582Hr/Sy4nMlvJw= -bitbucket.org/ausocean/iot v1.4.0/go.mod h1:NbEg2PvYSHDdUsy5eMmihBySpWfqaHiMdspQDZdDe8o= +bitbucket.org/ausocean/iot v1.4.1 h1:PcRu9dS5CbKyw1FZjEc4MR9CQ+ku9MkH9ZjA0f6Mm1c= +bitbucket.org/ausocean/iot v1.4.1/go.mod h1:NbEg2PvYSHDdUsy5eMmihBySpWfqaHiMdspQDZdDe8o= bitbucket.org/ausocean/utils v1.2.11/go.mod h1:uXzX9z3PLemyURTMWRhVI8uLhPX4uuvaaO85v2hcob8= bitbucket.org/ausocean/utils v1.3.0/go.mod h1:yWsulKjbBgwL17/w55MQ6cIT9jmNeOkwpd2gUIxAcIY= bitbucket.org/ausocean/utils v1.3.2 h1:U+jNixVPH1Ih0QpOckI4djhEc/T6FAzt9znADRcJ07s=