Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Update providers.bzl #2077

Merged
merged 2 commits into from May 5, 2022
Merged

Update providers.bzl #2077

merged 2 commits into from May 5, 2022

Conversation

uajith
Copy link
Contributor

@uajith uajith commented May 4, 2022

From Bazel 5 onwards, the keywords "stamp, stamp, stamp, stamp_inputs, and tag" became obsolete. Removing them.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • [ X] Bugfix
  • [X ] Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

From Bazel 5 onwards, the keywords  "stamp, stamp, stamp, stamp_inputs, and tag" became obsolete. Removing them.
removing obsolete keywords
Copy link
Collaborator

@linzhp linzhp left a comment

Choose a reason for hiding this comment

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

tests passed on Uber's internal repo

@linzhp linzhp merged commit 0768e1b into bazelbuild:master May 5, 2022
@uajith
Copy link
Contributor Author

uajith commented May 6, 2022

@linzhp ,
On which version of rules_docker this change will be available? Will there be a new version coming up with this change? I can see only v24.0 which I can use in my WORKSPACE file.

@linzhp
Copy link
Collaborator

linzhp commented May 6, 2022

v0.24.0 only came out a few commits ago. There is no significant feature or bug fixes since then. I am hoping we can at least fix #2052 before next release, so we don't carry bugs introduced by #1963 for another release. @uhthomas what do you think?

St0rmingBr4in pushed a commit to St0rmingBr4in/rules_docker that referenced this pull request Oct 17, 2022
From Bazel 5 onwards, the keywords  "stamp, stamp, stamp, stamp_inputs, and tag" became obsolete. Removing them.
@philsc
Copy link

philsc commented Nov 9, 2022

From Bazel 5 onwards, the keywords "stamp, stamp, stamp, stamp_inputs, and tag" became obsolete

@uajith , can you elaborate what you mean by obsolete? I would like to pull the tag attribute from push targets in some downstream rules that perform multiple pushes at once. How do I access the tag in bazel 5 onwards?

This broke when trying to upgrade to 0.25.0.

jacobmou added a commit to jacobmou/rules_docker that referenced this pull request Apr 19, 2023
This reverts commit 0768e1b.

In the original patch
bazelbuild#2077, `tag` and
`stamp_input` fields of PushInfo were removed with the assumption
that they become obsolete since bazel 5.0. However, bazel itself
doesn't control our customized `PushInfo` provider.

We have some downstream rules that are relying on these field and
would like to keep using them in latest version of rules_docker.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants