File tree 4 files changed +23
-1277
lines changed
4 files changed +23
-1277
lines changed Original file line number Diff line number Diff line change 18
18
- name : Set up Go
19
19
uses : actions/setup-go@v4
20
20
with :
21
- go-version : 1.17
21
+ go-version-file : ' go.mod '
22
22
23
23
- name : Set up QEMU
24
24
uses : docker/setup-qemu-action@v2
Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ func initConfig() {
97
97
viper .AutomaticEnv () // read in environment variables that match
98
98
99
99
// If a config file is found, read it in.
100
- if err := viper .ReadInConfig (); err == nil {
101
- fmt .Println ("Using config file:" , viper .ConfigFileUsed ())
102
- }
100
+ // Indicates viper.ConfigFileNotFoundError if no config file is provided, which is fine
101
+ _ = viper .ReadInConfig ()
103
102
}
Original file line number Diff line number Diff line change @@ -6,4 +6,22 @@ require (
6
6
github.com/spf13/viper v1.16.0
7
7
)
8
8
9
- go 1.13
9
+ require (
10
+ github.com/fsnotify/fsnotify v1.6.0 // indirect
11
+ github.com/hashicorp/hcl v1.0.0 // indirect
12
+ github.com/inconshreveable/mousetrap v1.1.0 // indirect
13
+ github.com/magiconair/properties v1.8.7 // indirect
14
+ github.com/mitchellh/mapstructure v1.5.0 // indirect
15
+ github.com/pelletier/go-toml/v2 v2.0.8 // indirect
16
+ github.com/spf13/afero v1.9.5 // indirect
17
+ github.com/spf13/cast v1.5.1 // indirect
18
+ github.com/spf13/jwalterweatherman v1.1.0 // indirect
19
+ github.com/spf13/pflag v1.0.5 // indirect
20
+ github.com/subosito/gotenv v1.4.2 // indirect
21
+ golang.org/x/sys v0.8.0 // indirect
22
+ golang.org/x/text v0.9.0 // indirect
23
+ gopkg.in/ini.v1 v1.67.0 // indirect
24
+ gopkg.in/yaml.v3 v3.0.1 // indirect
25
+ )
26
+
27
+ go 1.20
You can’t perform that action at this time.
0 commit comments