Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignoring paths by patterns does not remove them from package assembly #1607

Open
AyanSinhaMahapatra opened this issue Feb 27, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@AyanSinhaMahapatra
Copy link
Member

Currently ignoring a specific path with patterns (like this) either thorugh the project settings or the a scancode configuration file does not remove these resources from the package assembly, this is beacuse:

  • ignoring the resources by path still creates and stores the resources in the directory, it just updates it's status to IGNORED_PATTERN. I.e. it does not delete the resources from the database
  • Other subsequent functions/pipes are expected to ignore these files by using this assigned status.
  • If package assembly starts from a resource (having some package metadata detected) which is not ignored, then we walk the codebase from this resource to assign codebase resources to this package. This operation does not currently honour the ignored status as these functions are implemented for each ecosystem in scancode-toolkit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant