Skip to content

Commit

Permalink
keep the 2 loads consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
edw-defang committed Jun 14, 2024
1 parent d64e94e commit 37dd1f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pkg/cli/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ 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.WithOsEnv,
cli.WithDotEnv,
cli.WithConfigFileEnv,
cli.WithDefaultConfigPath,
cli.WithDefaultProfiles("defang"),
cli.WithConsistency(false), // TODO: check fails if secrets are used but top-level 'secrets:' is missing
cli.WithNormalization(false),
cli.WithDiscardEnvFile,
cli.WithConsistency(false),
cli.WithNormalization(false), // Disable normalization to keep unset environment variables
)
if err != nil {
return nil, err
Expand Down

0 comments on commit 37dd1f4

Please sign in to comment.