Skip to content

Commit dbfe619

Browse files
ndeloofglours
authored andcommitted
Introduced ability to skip env_file parsing with include
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 2837330 commit dbfe619

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

loader/include.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ func ApplyInclude(ctx context.Context, workingDir string, environment types.Mapp
117117
} else {
118118
envFile := []string{}
119119
for _, f := range r.EnvFile {
120+
if f == "/dev/null" {
121+
continue
122+
}
120123
if !filepath.IsAbs(f) {
121124
f = filepath.Join(workingDir, f)
122125
s, err := os.Stat(f)

0 commit comments

Comments
 (0)