Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pre_commit_hooks/shellcheck_run_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ def main(argv: Sequence[str] | None = None) -> int:
"w",
delete_on_close=False,
) as compiled_out:
with open(filename) as precompiled_in:
melange_cfg = yaml.load(precompiled_in)
architectures = melange_cfg["package"].get("target-architecture", [])
if not architectures:
architectures = ["x86_64"]
Comment thread
AbduAzim424 marked this conversation as resolved.
Outdated
arch = architectures[0]
subprocess.check_call(
[
"docker",
Expand All @@ -117,7 +123,7 @@ def main(argv: Sequence[str] | None = None) -> int:
"--rm",
MelangeImage,
"compile",
f"--arch={os.uname().machine}",
f"--arch={arch}",
"--pipeline-dir=./pipelines",
filename,
],
Expand Down
Loading