fix: Load variables from .env file by default

This commit is contained in:
yuefanxiao 2025-04-27 18:11:10 +08:00 committed by 肖跃帆
parent 1b29e031e3
commit 7dddd1f0e8

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")