Bazel loads deprecated docker rules, prints warning
See original GitHub issuePlease provide the following information. The more we know about your system and use case, the more easily and likely we can help.
Description of the problem / feature request / question:
Our project has chosen to build our workspace with a bazel that has been bootstrapped from source from a submodule, so we can update it easily and with minimal overhead to our developers. Our bazel wrapper script builds bazel itself on every build, and then invokes the bazel command passed to it, so we see the following deprecation warning on every build.
WARNING: /Users/jgavris/code/software/bazel/tools/build_defs/docker/docker.bzl:19:1: The docker_{build,bundle} rules bundled with Bazel are deprecated in favor of:
https://github.com/bazelbuild/rules_docker. Please change BUILD loads to reference: @io_bazel_rules_docker//docker:docker.bzl and add the following to your WORKSPACE:
git_repository(
name = "io_bazel_rules_docker",
remote = "https://github.com/bazelbuild/rules_docker.git",
commit = "...",
)
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_repositories")
docker_repositories().
If possible, provide a minimal example to reproduce the problem:
Build bazel from source:
$ bazel build //src:bazel-bin
Environment info
-
Operating System: macOS 10.12.5
-
Bazel version (output of
bazel info release
): release 0.5.1-homebrew
Anything else, information or logs or outputs that would be helpful?
I may try to tackle this later this week. I was wondering if anyone is aware of it and / or planning to resolve it in the near future.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Command-Line Reference | Bazel
Valid values are `error` to escalate it to a resolution failure, `off` to disable the check, or `warning` to print a warning when...
Read more >What's New in Bazel 5.0 - BuildBuddy
In the Bazel 5.0 release progress was made on the Android, C++, Java, and Objective-C rules. In addition to changes directly needed for ......
Read more >Command-Line Reference - Bazel 0.22.0
print_action, Prints the command line args for compiling a file. ... Only shows warnings for rules with a name matching the provided regular...
Read more >CHANGELOG.md - Google Git
The native http_archive rule is deprecated. Use the Skylark version available via load(“@bazel_tools//tools/build_defs/repo:http.bzl”, ...
Read more >How to speed up bazel builds on Google Cloud Platform
Container Builder doesn't offer this as a built-in at this time, but you can do it yourself. Add one or more volumes to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@damienmg Given that this is complicated mostly for internal reasons, can we at least get a change into 0.6 that removes the deprecation notice and changes the visibility?
This was resolved a while ago, thanks!