Skip to content

Commit cb6bfd4

Browse files
committed
project name set by yaml must be identified by caller as opts.projectName
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 11ef957 commit cb6bfd4

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

loader/loader.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ func load(ctx context.Context, configDetails types.ConfigDetails, opts *Options,
415415
WorkingDir: configDetails.WorkingDir,
416416
Environment: configDetails.Environment,
417417
}
418+
delete(dict, "name") // project name set by yaml must be identified by caller as opts.projectName
418419
err = Transform(dict, project)
419420
if err != nil {
420421
return nil, err

loader/loader_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,6 @@ networks:
781781
config, err := Load(buildConfigDetails(dict, env), func(options *Options) {
782782
options.SkipNormalization = true
783783
options.SkipConsistencyCheck = true
784-
options.SetProjectName("test", true)
785784
})
786785
assert.NilError(t, err)
787786

0 commit comments

Comments
 (0)