Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: gazelle manifest exclude_patterns #917

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

Merged
merged 2 commits into from
Dec 6, 2022

Conversation

f0rmiga
Copy link
Member

@f0rmiga f0rmiga commented Dec 6, 2022

The current behaviour of the Gazelle manifest is to include every single module it can find inside a Python wheel. This has the downside of adding specific modules that differ from one platform to another. E.g. psutil will have differing module files; therefore, generating the Gazelle manifest will yield different results on macOS vs Linux vs Windows. By excluding modules that start with _ by default, we can reduce these differences.

I made the exclude_patterns configurable in case the user hits another difference that is not captured by the default value.

In addition to this new feature, I changed the integrity hash logic to consider the generator source code as part of the input. This will enforce users upgrading to a new release of rules_python to re-generate the manifests.

@f0rmiga f0rmiga requested a review from mattem December 6, 2022 20:08
@f0rmiga f0rmiga requested a review from rickeylev as a code owner December 6, 2022 20:08
@f0rmiga f0rmiga merged commit 6574e34 into main Dec 6, 2022
@f0rmiga f0rmiga deleted the f0rmiga/gazelle-manifest-exclude-patterns branch December 6, 2022 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants