https://github.com/flolu/rules_oci-debian
Minimal repro for a rules_oci debian error
https://github.com/flolu/rules_oci-debian
bazel nodejs rules-js rules-oci rules-ts typesript
Last synced: 12 months ago
JSON representation
Minimal repro for a rules_oci debian error
- Host: GitHub
- URL: https://github.com/flolu/rules_oci-debian
- Owner: flolu
- Created: 2023-03-31T21:04:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-14T11:58:40.000Z (over 2 years ago)
- Last Synced: 2025-01-09T06:28:31.454Z (about 1 year ago)
- Topics: bazel, nodejs, rules-js, rules-oci, rules-ts, typesript
- Language: Starlark
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**Requirements**
- Linux or macOS
- Node.js
- Docker
- pnpm\*
- Bazelisk\*
- Buildifier\*
**Usage**
```
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 Fedora Linux**
While building the Docker image
```
ERROR: /home/flolu/.cache/bazel/_bazel_flolu/7cbadce41d07a7c855512872c500f8e2/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//': too many values to unpack (got 3, want 2)
```
or
```
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**
While running the Docker image
```
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
```
**But it works fine with the [pull.bzl](pull.bzl) helper!**