v0.0.287 fix bug in confext::ApplyEnvOverrides if a struct env key exists in the os.env
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m37s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m37s
This commit is contained in:
parent
da41ec3e84
commit
07cbcf5a0a
@ -41,12 +41,12 @@ func processEnvOverrides(rval reflect.Value, delim string, prefix string) error
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if rvfield.Kind() == reflect.Struct {
|
envkey, found := rsfield.Tag.Lookup("env")
|
||||||
|
if !found || envkey == "-" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
envkey, found := rsfield.Tag.Lookup("env")
|
if rvfield.Kind() == reflect.Struct && rvfield.Type() != reflect.TypeOf(time.UnixMilli(0)) {
|
||||||
if !found || envkey == "-" {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
subPrefix := prefix
|
subPrefix := prefix
|
||||||
if envkey != "" {
|
if envkey != "" {
|
||||||
@ -57,10 +57,7 @@ func processEnvOverrides(rval reflect.Value, delim string, prefix string) error
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
envkey := rsfield.Tag.Get("env")
|
|
||||||
if envkey == "" || envkey == "-" {
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package goext
|
package goext
|
||||||
|
|
||||||
const GoextVersion = "0.0.286"
|
const GoextVersion = "0.0.287"
|
||||||
|
|
||||||
const GoextVersionTimestamp = "2023-10-11T11:27:18+0200"
|
const GoextVersionTimestamp = "2023-10-12T10:02:42+0200"
|
||||||
|
Loading…
Reference in New Issue
Block a user