Skip to content

Avoid depending on the value of the --stamp flag if possible#1035

Open
justinhorvitz wants to merge 8 commits intobazelbuild:mainfrom
justinhorvitz:patch-1
Open

Avoid depending on the value of the --stamp flag if possible#1035
justinhorvitz wants to merge 8 commits intobazelbuild:mainfrom
justinhorvitz:patch-1

Conversation

@justinhorvitz
Copy link

@justinhorvitz justinhorvitz commented Feb 23, 2026

pkg_tar and pkg_zip use a config_setting to read the value of the --stamp build option. This is suboptimal for some new Google-internal caching features. We can restrict this dependency to cases where stamp = -1 on the rule level. The default rule-level attribute is stamp = 0, so this removes the dependency by default.

@cgrindel
Copy link
Collaborator

cgrindel commented Mar 1, 2026

I won't merge this PR yet so that @aiuto can take a look.

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.

3 participants