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

Remove unreachable dependencies from verification-metadata.xml #13791

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jamesonwilliams
Copy link
Contributor

@jamesonwilliams jamesonwilliams commented Nov 16, 2024

Contributor checklist

  • Build only change
  • My contribution is fully baked and ready to be merged as is
  • I ensure that all the open issues my contribution fixes are mentioned in the commit message of my first commit using the Fixes #1234 syntax

Description

Currently the verification-metadata.xml drifts out of date over time as people update dependencies but forget to clean out unused stuff from this XML file. This PR just does some routine manual maintenance.

It can be updated ad-hoc this way:

  1. Clearing the <components> entries from the file:
perl -i -0777 -pe 's/<components>.*?<\/components>//gs' gradle/verification-metadata.xml
  1. And then regenerating them:
./gradlew --write-verification-metadata sha256 qa --rerun-tasks

This might be a nice thing to validate on every PR android in android.yml?

I did this by clearing the components entries:

perl -i -0777 -pe 's/<components>.*?<\/components>//gs'  gradle/verification-metadata.xml

And then regenerating them:

./gradlew --write-verification-metadata sha256 qa --rerun-tasks

This might be a nice thing to validate on every PR android in android.yml.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant