Skip to content

Multiple .env files - only the first one is loaded #1416

@hgeritzer

Description

@hgeritzer

Hi,
when there are multiple .env files specified in the dotenv section, only the first existing one is loaded.
Is this expected behaviour?

internal/core/dag.go

// loadDotEnv loads dotenv file
func (d *DAG) LoadDotEnv(ctx context.Context) {

...

	// Load the first found one
	return
}

}

It would be a nice feature to load multiple .env files.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions