acoustic-carpenter-78188
04/22/2026, 9:27 PMflyte build errors with root_dir not set for CodeBundleLayer for any image that uses .with_code_bundle().
Fix
build_images() now resolves CodeBundleLayer before building, mirroring what apply() already does on the deploy path. The CLI gains --copy-style and --root-dir (matching flyte deploy) so the resolution has the inputs it needs.
Behavior
• Images without `.with_code_bundle()`: unchanged.
• Images with `.with_code_bundle()`: previously crashed, now build.
• Defaults match flyte deploy, so running flyte build then flyte deploy with no flags produces matching image hashes — deploy reuses the pre-built image instead of rebuilding.
Why
Enables splitting image builds from deploys in CI, which is otherwise impossible today using .with_code_bundle()`.
flyteorg/flyte-sdkacoustic-carpenter-78188
04/23/2026, 12:54 AM