Skip to content

Commit

Permalink
Revert "Update providers.bzl (bazelbuild#2077)"
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jacobmou committed Apr 19, 2023
1 parent 6db7c12 commit 21ddea0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions container/providers.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ LayerInfo = provider(fields = [
PushInfo = provider(fields = [
"registry",
"repository",
"tag",
"stamp_inputs",
"digest",
])

Expand Down
2 changes: 2 additions & 0 deletions container/push.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def _impl(ctx):
PushInfo(
registry = registry,
repository = repository,
tag = tag,
stamp_inputs = stamp_inputs,
digest = ctx.outputs.digest,
),
]
Expand Down

0 comments on commit 21ddea0

Please sign in to comment.