-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
I tried using the open-source version of Antlir, but it's not clear if it is supposed to work or not.
- Last time tests passed was on hash 10290d8 (around December 6, 2024)
- I tried to create a simple test myself
/examples/script.sh
#!/bin/sh
echo "Hello world!"
/examples/BUCK
load("//antlir/antlir2/bzl/feature:defs.bzl", "feature")
load("//antlir/antlir2/bzl/image:defs.bzl", "image")
load("//antlir/antlir2/testing:image_test.bzl", "image_sh_test")
image.layer(
name = "layer",
features = [
feature.rpms_install(rpms = ["basesystem"]),
],
)
image_sh_test(
name = "test",
test = "script.sh",
layer = ":layer"
)
I built it with ./buck2 build antlir//examples:test.
On the latest version (9dfb06c) of the repo it fails with:
BUILD FAILED
From load at examples/BUCK:2
Caused by:
0: From load at antlir/antlir2/bzl/image/defs.bzl:7
1: Error evaluating module: `antlir//antlir/antlir2/bzl/image/prebuilt.bzl`
2: Traceback (most recent call last):
* antlir/antlir2/bzl/image/prebuilt.bzl:153, in <module>
} | cfg_attrs() | attrs_selected_by_cfg(),
* antlir/antlir2/bzl/image/cfg.bzl:48, in attrs_selected_by_cfg
"build_appliance": attrs.exec_dep(
error: Error coercing attribute default
--> antlir/antlir2/bzl/image/cfg.bzl:48:28
|
48 | "build_appliance": attrs.exec_dep(
| ____________________________^
49 | | providers = [BuildApplianceInfo],
50 | | default = select({os.select_key: os.build_appliance for os in OSES}),
51 | | ),
| |_________^
|
3: Error coercing "antlir//flavor//centos10:build-appliance"
4: Invalid absolute target pattern `antlir//flavor//centos10:build-appliance` is not allowed
5: expected a normalized path but got an un-normalized path instead: `flavor//centos10`
On the last version where tests passed (10290d8), the build fails because the mirror doesn't have the packages referenced in the repo:
Error performing http_download request: HTTP Client Error (404 Not Found) when querying URI: https://mirror.facebook.net/centos-stream/9-stream/BaseOS/x86_64/os/Packages/glibc-minimal-langpack-2.34-143.el9.x86_64.rpm. Response text: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
...
Do you have any suggestions to make this work?
Metadata
Metadata
Assignees
Labels
No labels