mirror of
https://github.com/joho/godotenv.git
synced 2025-07-17 14:04:03 +00:00
The value expand fallback to actual ENV values
This commit is contained in:
@ -296,6 +296,9 @@ func parseValue(value string, envMap map[string]string) string {
|
|||||||
if val, ok := envMap[key]; ok {
|
if val, ok := envMap[key]; ok {
|
||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
|
if val, ok := os.LookupEnv(key); ok {
|
||||||
|
return val
|
||||||
|
}
|
||||||
return ""
|
return ""
|
||||||
})
|
})
|
||||||
return value
|
return value
|
||||||
|
Reference in New Issue
Block a user