Closed
Description
I am using functions-framwork-dart in a mono repo. It has its own dedicated project. I am sharing code between projects by using other projects which include the shared code. I am referencing the project as a dependency like this in the pubspec.yaml of the functions project:
dependencies:
domain:
path: ./../../domain
Locally everything can be resolved properly but as soon as I deploy with gcloud beta run deploy
it fails executing the docker file.
---> 61f398c71af6
Step 2/12 : WORKDIR /app
---> Running in 4eea5b3c3ec4
Removing intermediate container 4eea5b3c3ec4
---> 652a0d1dd253
Step 3/12 : COPY pubspec.yaml /app/pubspec.yaml
---> 0825cd012304
Step 4/12 : RUN dart pub get
---> Running in 05d05694046c
Resolving dependencies...
Because functions depends on domain from path which doesn't exist (could not find package domain at "../../domain"), version solving failed.
The command '/bin/sh -c dart pub get' returned a non-zero code: 66
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 66
I assume I need to also upload the dependency project folders. But how to do this? And how to then specify the Dockerfile path?
Metadata
Metadata
Assignees
Labels
No labels