fix: Load variables from .env file by default

This commit is contained in:
yuefanxiao authored and 肖跃帆 committed 2025-04-27 18:39:58 +08:00
1 parent 1b29e031e3
commit 7dddd1f0e8
1 file changed
+2
+2
View File
@@ -163,6 +163,8 @@ func (c *Compose) LoadFile(files []string, profiles []string, noInterpolate bool
cli.WithWorkingDirectory(workingDir),
cli.WithInterpolation(!noInterpolate),
cli.WithProfiles(profiles),
cli.WithEnvFiles([]string{}...),
cli.WithDotEnv,
)
if err != nil {
return kobject.KomposeObject{}, errors.Wrap(err, "Unable to create compose options")