fix: upgrading to resolve some security vulnerabilities.

This commit is contained in:
James Wells 2023-06-02 06:26:42 -07:00
parent 8f77f2258c
commit 426a360f1e
Signed by: jwells
GPG key ID: 73196D10B8E65666
3 changed files with 43 additions and 13 deletions

View file

@ -29,6 +29,8 @@ import (
promhttp "github.com/prometheus/client_golang/prometheus/promhttp"
uuid "github.com/jakehl/goid"
versioninfo "github.com/carlmjohnson/versioninfo"
)
/*
@ -55,8 +57,8 @@ var environment struct {
/*
* This is the application version number. It can be overridden at build time
* using the -ldflags "-X main.semVER=0.0.1" option.
* var semVER = "0.0.9"
*/
var semVER = "0.0.9"
/*
* This is the application configuration. It is populated from the configuration
@ -150,7 +152,7 @@ func init() {
/*
* Initialize the configuration
*/
config.Version = semVER
config.Version = versioninfo.Version
config.File = cfg.ConfigFile
@ -248,7 +250,7 @@ func init() {
* Consume the usage variable and the command line arguments to create a
* dictionary / map.
*/
opts, _ := docopt.ParseArgs(usage, nil, semVER)
opts, _ := docopt.ParseArgs(usage, nil, config.Version)
log.Printf("[DEBUG] Arguments are %v\n", opts)
if opts["--config"] != nil {