You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The app service is a FastAPI Python application, and it consumes a set of common utils in our monorepo from the top-level directory (in a folder called common). To reference these we use a symlink within the app/api directory:
When trying to deploy the service with azd up, we run into the following challenge:
ERROR: error executing step command 'package --all': failed packaging service 'app': open /var/folders/kl/dwz9d6xx5jx9s3ygwtqc5q_c0000gn/T/azd2971955672/common: no such file or directory
Which I've tracked down to the copy implementation in the cli:
Output from
azd version
azd version 1.11.1 (commit ae08ceba17c7078c547df9ee5f97e9e7ceb2fe53)
Describe the bug
We have the following
azure.yaml
:The
app
service is a FastAPI Python application, and it consumes a set of common utils in our monorepo from the top-level directory (in a folder calledcommon
). To reference these we use a symlink within theapp/api
directory:When trying to deploy the service with
azd up
, we run into the following challenge:Which I've tracked down to the copy implementation in the cli:
azure-dev/cli/azd/pkg/project/project_utils.go
Line 54 in 88ad9bc
It seems it uses this library and doesn't pass any options for:
Which defaults to ignoring them: https://github.com/otiai10/copy/blob/5ef5923d6ff098ea7a51792c1ec963d04fad9794/copy.go#L307
To Reproduce
azd
template with an appservice service in theazure.yaml
configcommon
folder to root and create dummy utilsrc/api
directorymain.py
azd up
Expected behavior
Symlinks should be respected and
Deep
copied, or failing that a new option should be introduced to enable thisEnvironment
The text was updated successfully, but these errors were encountered: