Skip to content

Fix stamping for rules that don't have a stamp attribute#1

Merged
justinhorvitz merged 1 commit into
mainfrom
justinhorvitz-patch-1
Jan 28, 2026
Merged

Fix stamping for rules that don't have a stamp attribute#1
justinhorvitz merged 1 commit into
mainfrom
justinhorvitz-patch-1

Conversation

@justinhorvitz
Copy link
Copy Markdown
Owner

Rules that don't have a stamp attribute, for example rust_cc_proto_library_aspect, should not be treated as stamped. This was broken by bazelbuild#3816 - prior to that, we were returning false because they also don't have a _stamp_flag attribute.

By returning true for rust_cc_proto_library_aspect, we're unnecessarily including the volatile stamp files as action inputs, which harms build caching.

@justinhorvitz justinhorvitz merged commit 2cb0c23 into main Jan 28, 2026
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.

1 participant