Skip to content

Commit

Permalink
V3 Fix: Ignore sub packages regex is not adhered (#890)
Browse files Browse the repository at this point in the history
* Fix ignored subpackages discovery
  • Loading branch information
Orbsynated authored Jan 9, 2025
1 parent e4a93d3 commit 85c4718
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,7 @@ func (c *RootConfig) Initialize(ctx context.Context) error {
return fmt.Errorf("initializing root config: %w", err)
}
if *pkgConfig.Config.Recursive {
if !c.ShouldExcludeSubpkg(pkgName) {
recursivePackages = append(recursivePackages, pkgName)
} else {
pkgLog.Debug().Msg("package was marked for exclusion")
}
recursivePackages = append(recursivePackages, pkgName)
}
}

Expand All @@ -230,6 +226,10 @@ func (c *RootConfig) Initialize(ctx context.Context) error {
}
parentPkgConfig := c.Packages[recursivePackageName]
for _, subpkg := range subpkgs {
if c.ShouldExcludeSubpkg(subpkg) {
pkgLog.Debug().Msg("package was marked for exclusion")
continue
}
var subPkgConfig *PackageConfig
if existingSubPkg, exists := c.Packages[subpkg]; exists {
subPkgConfig = existingSubPkg
Expand Down

0 comments on commit 85c4718

Please sign in to comment.