$ USE_BAZEL_VERSION=5.0.0 bazelisk build gce-containers-startup
2022/07/01 01:15:35 Downloading https://releases.bazel.build/5.0.0/release/bazel-5.0.0-linux-x86_64...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
DEBUG: Rule 'io_bazel_rules_go' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "9036cf6ed6309cf1e8fb81f077c7d3c344edd6db", shallow_since = "1586878324 -0400" and dropping ["tag"]
DEBUG: Repository io_bazel_rules_go instantiated at:
/home/nozomu/konlet/WORKSPACE:3:15: in <toplevel>
Repository rule git_repository defined at:
/home/nozomu/.cache/bazel/_bazel_nozomu/5b95ca67849188a8bcc8d6d7c1d27583/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
DEBUG: Rule 'io_bazel_rules_docker' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "3772262910d1ac63563e5f1758f07df1f7857442", shallow_since = "1579194217 -0800" and dropping ["tag"]
DEBUG: Repository io_bazel_rules_docker instantiated at:
/home/nozomu/konlet/WORKSPACE:19:15: in <toplevel>
Repository rule git_repository defined at:
/home/nozomu/.cache/bazel/_bazel_nozomu/5b95ca67849188a8bcc8d6d7c1d27583/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
ERROR: Traceback (most recent call last):
File "/home/nozomu/konlet/gce-containers-startup/BUILD", line 26, column 53, in <toplevel>
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_deb", "pkg_tar")
Error: file '@bazel_tools//tools/build_defs/pkg:pkg.bzl' does not contain symbol 'pkg_deb' (did you mean 'pkg_tar'?)
ERROR: Skipping 'gce-containers-startup': no such target '//gce-containers-startup:gce-containers-startup': target 'gce-containers-startup' not declared in package 'gce-containers-startup' defined by /home/nozomu/konlet/gce-containers-startup/BUILD
WARNING: Target pattern parsing failed.
ERROR: no such target '//gce-containers-startup:gce-containers-startup': target 'gce-containers-startup' not declared in package 'gce-containers-startup' defined by /home/nozomu/konlet/gce-containers-startup/BUILD
INFO: Elapsed time: 11.989s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded)
OS version
Bazelisk version
v1.12.0
konlet revision
latest(
9cb9106daf07123c2641159cb8bcc9d6f4960ec2
)Output
Reason
Probably because pkg_deb is no longer part of bazel_tools. https://blog.bazel.build/2022/01/19/bazel-5.0.html#packaging