We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4045af commit 6dbef33Copy full SHA for 6dbef33
internal/devconfig/configfile/env.go
@@ -27,8 +27,9 @@ func (c *ConfigFile) ParseEnvsFromDotEnv() (map[string]string, error) {
27
return nil, fmt.Errorf("env file does not have a .env extension")
28
}
29
envFileAbsPath := filepath.Dir(c.AbsRootPath)
30
+ // We don't allow absolute path for env_from as it breaks reproducibility
31
if filepath.IsAbs(c.EnvFrom) {
- envFileAbsPath = path.Join(envFileAbsPath, path.Base(c.EnvFrom))
32
+ return nil, fmt.Errorf("`env_from` field can't take an absolute path")
33
} else {
34
envFileAbsPath = path.Join(envFileAbsPath, c.EnvFrom)
35
0 commit comments