Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with rules_docker >= v0.22.0 #83

Open
cotocisternas opened this issue Feb 8, 2022 · 0 comments
Open

Incompatibility with rules_docker >= v0.22.0 #83

cotocisternas opened this issue Feb 8, 2022 · 0 comments

Comments

@cotocisternas
Copy link
Contributor

Description of the problem / feature request:

Breaking change in rules_doker #1878.
Base stamping on --stamp flag and not attributes

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Update rules_doker to v0.22.0 or greater

What operating system are you running Bazel on?

Linux 5.16.5-arch1-1 SMP PREEMPT Tue, 01 Feb 2022 21:42:50 +0000 x86_64 GNU/Linux

What's the output of bazel info release?

5.0.0

Snippet of the WORKSPACE file that includes rules_gitops rules.

rules_gitops_version = "7e5045a2e041eb06fc9e5a636fe896d9fbb4e769"

http_archive(
    name = "com_adobe_rules_gitops",
    sha256 = "f6b9c1ad1a958f4650c6d78a42d371cc773851095b9953676f6faa1125c98218",
    strip_prefix = "rules_gitops-%s" % rules_gitops_version,
    urls = ["https://github.com/adobe/rules_gitops/archive/%s.zip" % rules_gitops_version],
)

load("@com_adobe_rules_gitops//gitops:deps.bzl", "rules_gitops_dependencies")

rules_gitops_dependencies()

load("@com_adobe_rules_gitops//gitops:repositories.bzl", "rules_gitops_repositories")

rules_gitops_repositories()

Have you found anything relevant by searching the web?

rules_docker issue
rules_doker PR

Any other information, logs, or outputs that you want to share?

ERROR: /home/coto/dev/golang/srcei-cc/cmd/service/grpc/BUILD:76:15: in k8s_container_push rule //cmd/service/grpc:us-central1-docker.pkg.dev-grpc-container_image.push: 
Traceback (most recent call last):
        File "/home/coto/.cache/bazel/_bazel_coto/d5d8645d114a3b1ae669bf1177fee9ec/external/com_adobe_rules_gitops/skylib/push.bzl", line 131, column 17, in _impl
                PushInfo(
        File "/home/coto/.cache/bazel/_bazel_coto/d5d8645d114a3b1ae669bf1177fee9ec/external/io_bazel_rules_docker/container/providers.bzl", line 52, column 20, in PushInfo
                PushInfo = provider(fields = [
Error: unexpected keywords stamp, stamp, stamp, stamp_inputs, tag in call to instantiate provider PushInfo
ERROR: /home/coto/dev/golang/srcei-cc/cmd/service/grpc/BUILD:76:15: Analysis of target '//cmd/service/grpc:us-central1-docker.pkg.dev-grpc-container_image.push' failed
ERROR: Analysis of target '//cmd/service/grpc:grpc_dev.show' failed; build aborted: 
INFO: Elapsed time: 6.848s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (644 packages loaded, 14315 targets configured)
FAILED: Build did NOT complete successfully (644 packages loaded, 14315 targets configured)
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

No branches or pull requests

1 participant