Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 54fa534

Browse files
author
Ulysses Souza
committed
Remove redundant env_file section.
Signed-off-by: Ulysses Souza <[email protected]>
1 parent c148977 commit 54fa534

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

e2e/envfile_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,5 @@ services:
2020
COMPANY: mycompany
2121
SOME_FILE: /some/file
2222
USER: myuser
23-
env_file:
24-
- myvars.env
2523
image: busybox:1.30.1`})
2624
}

render/render.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func render(appPath string, composeContent string, imageMap map[string]bundle.Im
102102
rendered, err := loader.Load(composetypes.ConfigDetails{
103103
WorkingDir: appPath,
104104
ConfigFiles: configFiles,
105-
})
105+
}, loader.WithDiscardEnvFiles)
106106
if err != nil {
107107
return nil, errors.Wrap(err, "failed to load Compose file")
108108
}

0 commit comments

Comments
 (0)