mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-17 05:31:16 +08:00
Docker BuildKit exposes TARGET* for the requested image platform. It exposes BUILD* for the daemon running build stages. The bootstrap path did not pass an explicit platform or seed those args, so Dockerfile behavior could depend on daemon defaults. Set the build request platform from TARGETPLATFORM when supplied. Use the daemon platform as the fallback. Query the daemon for BUILD*. Seed implicit args without overwriting caller values. Do not inject empty variant args. Tests - mise run pre-commit Signed-off-by: Shiju <shiju@nvidia.com>