Merge pull request #8819 from ulyssessouza/dotenv-wrkdir-order

Fix project settings' options order
This commit is contained in:
Mathieu Champlon 2021-10-23 09:56:08 +02:00 committed by GitHub
commit 6476e10b93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -199,10 +199,10 @@ func (o *projectOptions) toProject(services []string, po ...cli.ProjectOptionsFn
func (o *projectOptions) toProjectOptions(po ...cli.ProjectOptionsFn) (*cli.ProjectOptions, error) {
return cli.NewProjectOptions(o.ConfigPaths,
append(po,
cli.WithWorkingDirectory(o.ProjectDir),
cli.WithEnvFile(o.EnvFile),
cli.WithDotEnv,
cli.WithOsEnv,
cli.WithWorkingDirectory(o.ProjectDir),
cli.WithConfigFileEnv,
cli.WithDefaultConfigPath,
cli.WithName(o.ProjectName))...)