<#1001 resolve CodeBundleLayer in flyte build> Pul...
# flyte-github
a
#1001 resolve CodeBundleLayer in flyte build Pull request opened by dansola Problem
flyte 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-sdk