Skip to content

Commit 642d214

Browse files
committed
drop dependencies when configured to run with --no-deps
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 32b078a commit 642d214

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

types/project.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,11 @@ func (p *Project) ForServices(names []string, options ...DependencyOption) error
396396
var enabled Services
397397
for _, s := range p.Services {
398398
if _, ok := set[s.Name]; ok {
399+
for _, option := range options {
400+
if option == IgnoreDependencies {
401+
s.DependsOn = nil
402+
}
403+
}
399404
enabled = append(enabled, s)
400405
} else {
401406
p.DisabledServices = append(p.DisabledServices, s)

0 commit comments

Comments
 (0)