Blame SOURCES/0001-feat-default-config-file-location.patch

07b666
--- main.go.orig	2022-02-11 15:41:53.199642591 -0500
07b666
+++ main.go	2022-02-11 15:42:43.738219604 -0500
07b666
@@ -6,6 +6,7 @@
07b666
 	"fmt"
07b666
 	"net"
07b666
 	"os"
07b666
+	"path/filepath"
07b666
 	"strconv"
07b666
 	"strings"
07b666
 	"time"
07b666
@@ -21,7 +22,7 @@
07b666
 )
07b666
 
07b666
 func main() {
07b666
-	fs := flag.NewFlagSet("yggd-package-manager-worker", flag.ExitOnError)
07b666
+	fs := flag.NewFlagSet(filepath.Base(os.Args[0]), flag.ExitOnError)
07b666
 
07b666
 	var (
07b666
 		socketAddr    = ""
07b666
@@ -32,7 +33,7 @@
07b666
 	fs.StringVar(&socketAddr, "socket-addr", "", "dispatcher socket address")
07b666
 	fs.Var(&logLevel, "log-level", "log verbosity level (error (default), warn, info, debug, trace)")
07b666
 	fs.Var(&allowPatterns, "allow-pattern", "regular expression pattern to allow package operations\n(can be specified multiple times)")
07b666
-	_ = fs.String("config", "", "path to `file` containing configuration values (optional)")
0000d3
+	_ = fs.String("config", filepath.Join("/", "etc", "rhc", "workers", "rhc-package-manager.toml"), "path to `file` containing configuration values (optional)")
07b666
 
07b666
 	ff.Parse(fs, os.Args[1:], ff.WithEnvVarPrefix("YGG"), ff.WithConfigFileFlag("config"), ff.WithConfigFileParser(fftoml.Parser))
07b666