An open API service indexing awesome lists of open source software.

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

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!**