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

Add exclude_files field to deploy_jar target (Cherry-pick of #20075) #20126

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

WorkerPants
Copy link
Member

I tried running pants package :my_deploy_jar and got this:

Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes

To fix this issue I've added exclude_files field to deploy_jar target, which allowed me to exclude jar signature:

deploy_jar(
    name="my_deploy_jar",
    ...,
    exclude_files=["META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA"],
)

I tried running `pants package :my_deploy_jar` and got this:
```
Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
```
To fix this issue I've added `exclude_files` field to `deploy_jar`
target, which allowed me to exclude jar signature:
```python
deploy_jar(
    name="my_deploy_jar",
    ...,
    exclude_files=["META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA"],
)
```
@huonw huonw merged commit cdfb17a into 2.18.x Nov 1, 2023
24 checks passed
@huonw huonw deleted the cherry-pick-20075-to-2.18.x branch November 1, 2023 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants