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

No such package '@debian_linux_amd64 #149

Closed
flolu opened this issue Apr 6, 2023 · 3 comments
Closed

No such package '@debian_linux_amd64 #149

flolu opened this issue Apr 6, 2023 · 3 comments

Comments

@flolu
Copy link

flolu commented Apr 6, 2023

Minimal Reproduction

git clone https://github.com/flolu/rules_oci-debian
cd rules_oci-debian
pnpm i
bazel build //app:image_tar
docker load --input $(bazel cquery --output=files //app:image_tar)
docker run -t rules_oci_debian_repro:latest

Error on Linux

During bazel build //app:image_tar

ERROR: /home/flolu/.cache/bazel/_bazel_flolu/3af270419fb798df87446cdc0a5f5c5f/external/debian/BUILD.bazel:1:6: @debian//:debian depends on @debian_linux_amd64//:debian_linux_amd64 in repository @debian_linux_amd64 which failed to fetch. no such package '@debian_linux_amd64//': key "auths" not found in dictionary

Error on macOS

During docker run -t rules_oci_debian_repro:latest

qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory

Notes

Everything works fine, when not using load("@rules_oci//oci:pull.bzl", "oci_pull") in WORKSPACE and rather using pull.bzl

@seh
Copy link
Contributor

seh commented Apr 7, 2023

This sounds similar to bazelbuild/bazel#17655. Does this work if you use a more recent Bazel version including bazelbuild/bazel#17818, such as last_green via Basilisk?

@flolu
Copy link
Author

flolu commented Apr 7, 2023

Mh. I've tried with last_green version, but I get the same error

@flolu
Copy link
Author

flolu commented Jun 14, 2023

The issue seems to be fixed with the v1 release of rules_oci

@flolu flolu closed this as completed Jun 14, 2023
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

2 participants