We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5d4a70 + cb8dec2 commit b706902Copy full SHA for b706902
cli/options.go
@@ -170,6 +170,9 @@ func WithLoadOptions(loadOptions ...func(*loader.Options)) ProjectOptionsFn {
170
// WithOsEnv imports environment variables from OS
171
func WithOsEnv(o *ProjectOptions) error {
172
for k, v := range getAsEqualsMap(os.Environ()) {
173
+ if _, set := o.Environment[k]; set {
174
+ continue
175
+ }
176
o.Environment[k] = v
177
}
178
return nil
@@ -239,6 +242,9 @@ func WithDotEnv(o *ProjectOptions) error {
239
242
if _, ok := notInEnvSet[k]; ok {
240
243
continue
241
244
245
246
247
248
249
250
0 commit comments