Skip to content

Return repo_metadata from repository rules - #152

Merged
Wyverald merged 2 commits into
bazel-contrib:mainfrom
keith:ks/return-repo_metadata-from-repository-rules
Jul 10, 2026
Merged

Wyverald merged 2 commits into
bazel-contrib:mainfrom
keith:ks/return-repo_metadata-from-repository-rules

Conversation

@keith

@keith keith commented Jul 9, 2026 •

Copy link
Copy Markdown
Member

This is used so R2C2 can cache these

@Wyverald Wyverald left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this would be correct? native.bazel_version isn't part of the cache key (IOW it's an 'undiscoverable input'), so you'd just cache it as 9.1.1 and use that forever.

@keith

keith commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

++, fixed

@Wyverald

Wyverald commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

But false is the default? I don't get what this is doing then.

@keith

keith commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

yea no change in behavior now, but it does silence bazelbuild/bazel#30202 which i'm using to spot other cases where it should be true instead

@Wyverald
Wyverald merged commit 700eab7 into bazel-contrib:main Jul 10, 2026
11 checks passed
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