<#4059 [BUG] - `flytectl register file` doesn't pi...
# flyte-github
c
#4059 [BUG] - `flytectl register file` doesn't pick up sourceUploadPath flag Issue created by orangesqueeze Describe the bug We are trying to register serialized protobuf files and upload them to an Azure storage account using the following commands:
mkdir -p /tmp/flyte/pb_output \
&& pyflyte --pkgs '${FLYTE_PACKAGE}' serialize --image ${DOCKER_IMAGE_FQDN} fast workflows -f /tmp/flyte/pb_output \
&& flytectl register file -p ${FLYTE_PROJECT_NAME} -d ${FLYTE_DOMAIN} --version ${CONTAINER_TAG} --sourceUploadPath="${FLYTE_DISTRIBUTION_DIR}" /tmp/flyte/pb_output/* --admin.endpoint ${FLYTE_HOST}:443 \
We can see that pb files are produced using
pyflyte
command. However,
flytectl
register command tries to upload the files to a default location, ignoring
$FLYTE_DISTRIBUTION_DIR
variabile which is set to a different value. (please have a look at the screenshot below) Open PR to fix the missing header error: flyteorg/flytectl#422 Expected behavior
flytectl register file --sourceUploadPath
should upload the pb files to configured storage. Additional context to reproduce No response Screenshots

image▾

image▾

Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte