Skip to content

Commit

Permalink
Do not enable .env files yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward J committed Jun 14, 2024
1 parent 37dd1f4 commit 87de97a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pkg/cli/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ func (c ComposeLoader) LoadCompose(ctx context.Context) (*compose.Project, error
// First apply os.Environment, always win
// -- DISABLED -- cli.WithOsEnv,
// Load PWD/.env if present and no explicit --env-file has been set
// -- DISABLED -- cli.WithEnvFiles(o.EnvFiles...), TODO: Do we support env files?
// -- NO SUCH PARAM YET -- cli.WithEnvFiles(o.EnvFiles...), TODO: Do we support env files?
// read dot env file to populate project environment
cli.WithDotEnv,
// -- DISABLED -- cli.WithDotEnv,
// get compose file path set by COMPOSE_FILE
cli.WithConfigFileEnv,
// if none was selected, get default compose.yaml file from current dir or parent folder
Expand Down Expand Up @@ -65,7 +65,6 @@ func (c ComposeLoader) LoadCompose(ctx context.Context) (*compose.Project, error
// Hack: Fill in the missing environment variables that were stripped by the normalization process
projOpts, err = cli.NewProjectOptions(nil,
cli.WithWorkingDirectory(filepath.Dir(filePath)),
cli.WithDotEnv,
cli.WithConfigFileEnv,
cli.WithDefaultConfigPath,
cli.WithDefaultProfiles("defang"),
Expand Down

0 comments on commit 87de97a

Please sign in to comment.