fixed: fix skip-needs issue

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2022-09-12 18:04:20 +08:00
parent f3984d5be5
commit bf323b4021
11 changed files with 26 additions and 26 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ func (t *SyncImpl) Concurrency() int {
// IncludeNeeds returns the include needs
func (t *SyncImpl) IncludeNeeds() bool {
return t.SyncOptions.IncludeNeeds || t.SyncOptions.IncludeTransitiveNeeds
return t.SyncOptions.IncludeNeeds || t.IncludeTransitiveNeeds()
}
// IncludeTransitiveNeeds returns the include transitive needs
@@ -81,7 +81,7 @@ func (t *SyncImpl) SkipDeps() bool {
// SkipNeeds returns the skip needs
func (t *SyncImpl) SkipNeeds() bool {
if !t.SyncOptions.IncludeNeeds {
if !t.IncludeNeeds() {
return t.SyncOptions.SkipNeeds
}