image: use systemd-dissect from the host when calculating measurements (#2473)

* image: use systemd-dissect from the host when calculating measurements

* ci: setup bazel and nix toolchains before merging os image measurements
This commit is contained in:
Malte Poll 2023-10-17 13:26:07 +02:00 committed by GitHub
parent ac8a464d7e
commit e93de82c0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View file

@ -21,8 +21,13 @@ go_binary(
],
embed = [":cmd_lib"],
# keep
env = {
"DISSECT_TOOLCHAIN": "$(rootpath @systemd//:bin/systemd-dissect)",
},
# TODO(malt3): The commented out env variable
# means we are using `systemd-dissect` from the host.
# `systemd-dissect` from nixpkgs breaks GitHub actions runners
# for unknown reasons.
# Fix this.
# env = {
# "DISSECT_TOOLCHAIN": "$(rootpath @systemd//:bin/systemd-dissect)",
# },
visibility = ["//visibility:public"],
)