Repository navigation
Store metadata paths relative to the root project - #903
Open
zalewskise wants to merge 1 commit into
Open
zalewskise wants to merge 1 commit into
zalewskise wants to merge 1 commit into
Conversation
zalewskise
marked this pull request as ready for review
November 23, 2026 06:48
ExNDY
self-requested a review
November 30, 2026 10:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What has changed?
<sourceSet>-metadata.jsonare stored relative to the root project dir and resolved against it when read. Files outside of it (only possible with a customresourcesSourceSetsdir or a module outside the root) keep absolute paths as before, so those setups behave the same as now.@Internalproperty, so it's not part of the cache key.Why it was changed?
Fixes #902 . Since #881,
generateMRcommonMaincan be restored from a cache entry made in another checkout, and the absolute paths in its metadata made the platform tasks copy resources from that checkout, or fail if it no longer exists.Notes for Reviewers
ResourceMetadataSerializernow decodes with the caller'sJson(decoder.json) instead of its own instance, otherwise the contextualFileserializer isn't available for nested metadata. This drops the old instance's lenient options (ignoreUnknownKeys,isLenient,coerceInputValues), which aren't needed since metadata is only read by the same plugin version that wrote it.