Skip to content

feat: gazelle manifest exclude_patterns - #917

Merged
f0rmiga merged 2 commits into
mainfrom
f0rmiga/gazelle-manifest-exclude-patterns
Dec 6, 2022
Merged

feat: gazelle manifest exclude_patterns#917
f0rmiga merged 2 commits into
mainfrom
f0rmiga/gazelle-manifest-exclude-patterns

Conversation

@f0rmiga

@f0rmiga f0rmiga commented Dec 6, 2022

Copy link
Copy Markdown
Member

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.

Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
@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