Files
cozystack/hack
Can Sentay 94bd0e3ecf fix(build): apply the PUSH and LOAD rules to make command-line values
A variable set on the make command line skips a plain assignment in a
makefile, so neither rule in common-envs.mk applied to one. With
OCI_EXPORT_DIR set, PUSH=1 on the command line still expanded to
--push=1 beside the OCI archive output, the anonymous push the export
guard exists to stop, and LOAD=1 still loaded. An empty PUSH= or LOAD=
reached buildx as an empty flag instead of falling back to the default,
as an empty environment value already does.

No workflow passes PUSH or LOAD on the command line today, so this
closes a gap rather than a leak that is happening.

Maintainer check: bats --filter 'on the make command line' passed 2/2 on HEAD; replacing common-envs.mk with pinned main failed 2/2: 'command-line PUSH=1 pushes under OCI_EXPORT_DIR' and 'empty command-line PUSH/LOAD reach buildx as empty flags'.

Fixes: 529efa7e01 ("build(hack): add OCI_EXPORT_DIR archive-export build mode")
Closes: #4655
Assisted-by: LLM
Signed-off-by: Can Sentay <cansen1392@gmail.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-12-03 17:50:31 +03:00
..