mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-15 10:54:29 -05:00
e93de82c0b
* image: use systemd-dissect from the host when calculating measurements * ci: setup bazel and nix toolchains before merging os image measurements
34 lines
944 B
Python
34 lines
944 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
|
|
|
go_library(
|
|
name = "cmd_lib",
|
|
srcs = ["main.go"],
|
|
importpath = "github.com/edgelesssys/constellation/v2/image/measured-boot/cmd",
|
|
visibility = ["//visibility:private"],
|
|
deps = [
|
|
"//image/measured-boot/extract",
|
|
"//image/measured-boot/measure",
|
|
"//image/measured-boot/pesection",
|
|
"@com_github_spf13_afero//:afero",
|
|
],
|
|
)
|
|
|
|
go_binary(
|
|
name = "cmd",
|
|
# keep
|
|
data = [
|
|
"@systemd//:bin/systemd-dissect",
|
|
],
|
|
embed = [":cmd_lib"],
|
|
# keep
|
|
# 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"],
|
|
)
|