File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
internal/devconfig/configfile Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,11 @@ func (c *ConfigFile) ParseEnvsFromDotEnv() (map[string]string, error) {
26
26
if ! c .IsdotEnvEnabled () {
27
27
return nil , fmt .Errorf ("env file does not have a .env extension" )
28
28
}
29
- envFileAbsPath := filepath .Dir (c .AbsRootPath )
30
29
// We don't allow absolute path for env_from as it breaks reproducibility
31
30
if filepath .IsAbs (c .EnvFrom ) {
32
31
return nil , fmt .Errorf ("`env_from` field can't take an absolute path" )
33
- } else {
34
- envFileAbsPath = path .Join (envFileAbsPath , c .EnvFrom )
35
32
}
33
+ envFileAbsPath := path .Join (filepath .Dir (c .AbsRootPath ), c .EnvFrom )
36
34
file , err := os .Open (envFileAbsPath )
37
35
if err != nil {
38
36
return nil , fmt .Errorf ("failed to open file: %s" , envFileAbsPath )
You can’t perform that action at this time.
0 commit comments