Attempting to fix security scan.
Some checks failed
G'Agent Scan, Build, and Test / scan (push) Successful in 39s
G'Agent Scan, Build, and Test / build_simple (push) Failing after 14s
G'Agent Scan, Build, and Test / test_simple (push) Has been skipped
G'Agent Scan, Build, and Test / build_image (push) Has been skipped

This commit is contained in:
James Wells 2024-12-26 13:49:09 -08:00
parent 9a89745878
commit df07f6be28
Signed by: jwells
GPG key ID: 73196D10B8E65666
2 changed files with 7 additions and 6 deletions

View file

@ -1,6 +1,7 @@
package main
import (
debug "runtime/debug"
flag "flag"
log "log"
http "net/http"
@ -31,7 +32,7 @@ import (
uuid "github.com/jakehl/goid"
versioninfo "github.com/carlmjohnson/versioninfo"
//versioninfo "github.com/carlmjohnson/versioninfo"
)
/*
@ -130,7 +131,7 @@ func main() {
* reads the environment variables. It also sets up the logging.
*/
func init() {
versioninfo.AddFlag(nil)
// versioninfo.AddFlag(nil)
flag.Parse()
cfg := environment
err := env.Parse(&cfg)
@ -151,7 +152,8 @@ func init() {
/*
* Initialize the configuration
*/
config.Version = versioninfo.Version
config.Version, err = debug.ReadBuildInfo()
// config.Version = versioninfo.Version
config.File = cfg.ConfigFile
@ -307,5 +309,4 @@ func init() {
}
autorestart.WatchFilename = config.File
autorestart.StartWatcher()
}