bazel build
.........
ERROR: error loading package '': Extension file not found. Unable to load package for '@distroless//package_manager:package_manager.bzl': BUILD file not found on package path
ERROR: error loading package '': Extension file not found. Unable to load package for '@distroless//package_manager:package_manager.bzl': BUILD file not found on package path
INFO: Elapsed time: 3.787s
FAILED: Build did NOT complete successfully (0 packages loaded)
Last active
February 1, 2018 23:36
-
-
Save pcn/6cc5e8d0a5aecbbc8bf22abb26e7ae22 to your computer and use it in GitHub Desktop.
Something in bazel broke between 0.8.0 and 0.9.0 (and still in 0.10.0) when using distroless
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package(default_visibility = ["//visibility:public"]) | |
| load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar") | |
| pkg_tar( | |
| name = "dev-config", | |
| strip_prefix = "/dev-config", | |
| extension = "tar.gz", | |
| srcs = glob(["dev-config/*"]), | |
| mode = "0644", | |
| ) |
With 0.9.0:
spacey@masonjar:~/dvcs/pcn/broken_bazel_packages$ bazel build
Extracting Bazel installation...
..........
ERROR: error loading package '': Encountered error while reading extension file 'package_manager/package_manager.bzl': no such package '@distroless//package_manager': Prefix distroless-89a3a3a was given, but not found in the archive
ERROR: error loading package '': Encountered error while reading extension file 'package_manager/package_manager.bzl': no such package '@distroless//package_manager': Prefix distroless-89a3a3a was given, but not found in the archive
INFO: Elapsed time: 3.367s
FAILED: Build did NOT complete successfully (0 packages loaded)
With 0.8.0:
spacey@masonjar:~/dvcs/pcn/broken_bazel_packages$ bazel build
Extracting Bazel installation...
..........
INFO: Analysed 0 targets (4 packages loaded).
INFO: Found 0 targets...
INFO: Elapsed time: 6.300s, Critical Path: 0.01s
INFO: Build completed successfully, 1 total action
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Based on the google/gcr distroless repo, get package lists from debian snapshot | |
| # package repos, and pull packages from there | |
| git_repository( | |
| name = "distroless", | |
| remote = "https://github.com/GoogleCloudPlatform/distroless.git", | |
| commit = "89a3a3a", | |
| ) | |
| load( | |
| "@distroless//package_manager:package_manager.bzl", | |
| "package_manager_repositories", | |
| "dpkg_src", | |
| "dpkg_list", | |
| ) | |
| package_manager_repositories() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment