Skip to content

Commit 3c676fd

Browse files
committed
run checkConsistency after profiles were applied
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 2697b9c commit 3c676fd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

loader/loader.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -554,17 +554,17 @@ func modelToProject(dict map[string]interface{}, opts *Options, configDetails ty
554554
}
555555
}
556556

557+
if project, err = project.WithProfiles(opts.Profiles); err != nil {
558+
return nil, err
559+
}
560+
557561
if !opts.SkipConsistencyCheck {
558562
err := checkConsistency(project)
559563
if err != nil {
560564
return nil, err
561565
}
562566
}
563567

564-
if project, err = project.WithProfiles(opts.Profiles); err != nil {
565-
return nil, err
566-
}
567-
568568
if !opts.SkipResolveEnvironment {
569569
project, err = project.WithServicesEnvironmentResolved(opts.discardEnvFiles)
570570
if err != nil {

0 commit comments

Comments
 (0)