File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import (
28
28
)
29
29
30
30
// VERSION is the current pkgr version
31
- var VERSION = "2.0.0 "
31
+ var VERSION = "2.0.1 "
32
32
33
33
var fs afero.Fs
34
34
var cfg configlib.PkgrConfig
Original file line number Diff line number Diff line change @@ -122,7 +122,14 @@ func loadConfigFromPath(configFilename string) error {
122
122
configFilename = "pkgr.yml"
123
123
}
124
124
viper .SetEnvPrefix ("pkgr" )
125
- viper .BindEnv ("rpath" , "library" )
125
+ err := viper .BindEnv ("rpath" )
126
+ if err != nil {
127
+ log .Fatalf ("error binding env: %s\n " , err )
128
+ }
129
+ err = viper .BindEnv ("library" )
130
+ if err != nil {
131
+ log .Fatalf ("error binding env: %s\n " , err )
132
+ }
126
133
configFilename , _ = homedir .Expand (filepath .Clean (configFilename ))
127
134
viper .SetConfigFile (configFilename )
128
135
b , err := ioutil .ReadFile (configFilename )
Original file line number Diff line number Diff line change @@ -48,11 +48,11 @@ type PkgrConfig struct {
48
48
NoRecommended bool `yaml:"NoRecommended",omitempty"`
49
49
Repos []map [string ]string `yaml:"Repos,omitempty"`
50
50
Rollback bool `yaml:"Rollback,omitempty"`
51
- Library string `yaml:"Library,omitempty"`
51
+ Library string `yaml:"Library,omitempty" mapstructure:"library,omitempty" `
52
52
LibPaths []string `yaml:"LibPaths,omitempty"`
53
53
Customizations Customizations `yaml:"Customizations,omitempty"`
54
54
Threads int `yaml:"Threads,omitempty"`
55
- RPath string `yaml:"RPath,omitempty"`
55
+ RPath string `yaml:"RPath,omitempty" mapstructure:"rpath,omitempty" `
56
56
Cache string `yaml:"Cache,omitempty"`
57
57
Logging LogConfig `yaml:"Logging,omitempty"`
58
58
Update bool `yaml:"Update,omitempty"`
You can’t perform that action at this time.
0 commit comments