+ bazel run //docker:tarball
INFO: Repository ubuntu_linux_arm64 instantiated at:
/Users/X/src/bazel-community-day-workshop/WORKSPACE.bazel:115:9: in <toplevel>
/private/var/tmp/_bazel_X/1292462a0a3b7f6dccd940f93a897fab/external/rules_oci/oci/pull.bzl:121:22: in oci_pull
Repository rule oci_pull defined at:
/private/var/tmp/_bazel_X/1292462a0a3b7f6dccd940f93a897fab/external/rules_oci/oci/private/pull.bzl:427:27: in <toplevel>
INFO: repository @ubuntu_linux_arm64' used the following cache hits instead of downloading the corresponding file.
* Hash '9b8dec3bf938bc80fbe758d856e96fdfab5f56c39d44b0cff351e847bb1b01ea' for https://index.docker.io/v2/library/ubuntu/manifests/sha256:9b8dec3bf938bc80fbe758d856e96fdfab5f56c39d44b0cff351e847bb1b01ea
If the definition of 'repository @ubuntu_linux_arm64' was updated, verify that the hashes were also updated.
ERROR: An error occurred during the fetch of repository 'ubuntu_linux_arm64':
Traceback (most recent call last):
File "/private/var/tmp/_bazel_X/1292462a0a3b7f6dccd940f93a897fab/external/rules_oci/oci/private/pull.bzl", line 394, column 17, in _oci_pull_impl
fail("No matching manifest found in image {}/{} for platform {}".format(rctx.attr.registry, rctx.attr.repository, rctx.attr.platform))
Error in fail: No matching manifest found in image index.docker.io/library/ubuntu for platform linux/arm64
ERROR: /Users/X/src/bazel-community-day-workshop/WORKSPACE.bazel:115:9: fetching oci_pull rule //external:ubuntu_linux_arm64: Traceback (most recent call last):
File "/private/var/tmp/_bazel_X/1292462a0a3b7f6dccd940f93a897fab/external/rules_oci/oci/private/pull.bzl", line 394, column 17, in _oci_pull_impl
fail("No matching manifest found in image {}/{} for platform {}".format(rctx.attr.registry, rctx.attr.repository, rctx.attr.platform))
Error in fail: No matching manifest found in image index.docker.io/library/ubuntu for platform linux/arm64
INFO: Repository go_sdk instantiated at:
/Users/X/src/bazel-community-day-workshop/WORKSPACE.bazel:82:23: in <toplevel>
/private/var/tmp/_bazel_mkorondi/1292462a0a3b7f6dccd940f93a897fab/external/io_bazel_rules_go/go/private/sdk.bzl:707:28: in go_register_toolchains
/private/var/tmp/_bazel_X/1292462a0a3b7f6dccd940f93a897fab/external/io_bazel_rules_go/go/private/sdk.bzl:317:25: in go_download_sdk
Repository rule go_download_sdk_rule defined at:
/private/var/tmp/_bazel_X/1292462a0a3b7f6dccd940f93a897fab/external/io_bazel_rules_go/go/private/sdk.bzl:135:39: in <toplevel>
ERROR: /private/var/tmp/_bazel_X/1292462a0a3b7f6dccd940f93a897fab/external/ubuntu/BUILD.bazel:1:6: @ubuntu//:ubuntu depends on @ubuntu_linux_arm64//:ubuntu_linux_arm64 in repository @ubuntu_linux_arm64 which failed to fetch. no such package '@ubuntu_linux_arm64//': No matching manifest found in image index.docker.io/library/ubuntu for platform linux/arm64
ERROR: Analysis of target '//docker:tarball' failed; build aborted:
INFO: Elapsed time: 0.523s
INFO: 0 processes.
ERROR: Build failed. Not running target
FAILED: Build did NOT complete successfully (1 packages loaded, 3 targets configured)
On Mac M1,
run.shfails with the following output:./run.sh
$ uname -a Darwin ... 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000 arm64 arm Darwin