From 21ddea0480f0fa256ef117e2470fb0350e16c173 Mon Sep 17 00:00:00 2001 From: Jacob Mou Date: Wed, 19 Apr 2023 20:04:16 +0000 Subject: [PATCH] Revert "Update providers.bzl (#2077)" This reverts commit 0768e1b7f6aa973f9879ac5b8f622dd2f3d88f1d. In the original patch https://github.com/bazelbuild/rules_docker/pull/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. --- container/providers.bzl | 2 ++ container/push.bzl | 2 ++ 2 files changed, 4 insertions(+) diff --git a/container/providers.bzl b/container/providers.bzl index 4c04fbc95..09e19c4db 100644 --- a/container/providers.bzl +++ b/container/providers.bzl @@ -52,6 +52,8 @@ LayerInfo = provider(fields = [ PushInfo = provider(fields = [ "registry", "repository", + "tag", + "stamp_inputs", "digest", ]) diff --git a/container/push.bzl b/container/push.bzl index baef9c25f..fc6fb16da 100644 --- a/container/push.bzl +++ b/container/push.bzl @@ -136,6 +136,8 @@ def _impl(ctx): PushInfo( registry = registry, repository = repository, + tag = tag, + stamp_inputs = stamp_inputs, digest = ctx.outputs.digest, ), ]