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
Describe the bug
When you develop a supabase project inside of a devcontainer volume functions deploy will fail to deploy because it attempts to find the files on the host under the same path. However, because these are not necessarily the same it causes it to fail. Local development appears to work normally.
To Reproduce
See the following codesandbox. You may setup a sample project to test deployment, but the project demonstrates the devcontainer layout I'm referring to. If you deploy in this environment it will fail to find the files in the host's filesystem.
Expected behavior
I expect the deploy script to either pull files from the devcontainer directly or find the respective mapping from the docker container's volume.
System information
Rerun the failing command with --create-ticket flag.
Version of OS: Ubuntu 23.10
Version of CLI: v1.183.5
Version of Docker: Docker version 27.0.3, build 7d4bcd8
Unfortunately it's not possible to support this on every OS because the edge runtime binary is only built for linux. So mounting functions directory into the edge runtime container is the least we can do.
For reference my work-around for this has been to make the working directory within my devcontainer match the directory in the host, due to mac's System Integrity Protection (SIP) it's not possible to create a directory on the host that matches within the container (for example, if you had mounted to path /workspaces/app). So instead you'll need to create a directory in the mac user folder and mount off of that within the devcontainer.
Describe the bug
When you develop a supabase project inside of a devcontainer volume functions deploy will fail to deploy because it attempts to find the files on the host under the same path. However, because these are not necessarily the same it causes it to fail. Local development appears to work normally.
To Reproduce
See the following codesandbox. You may setup a sample project to test deployment, but the project demonstrates the devcontainer layout I'm referring to. If you deploy in this environment it will fail to find the files in the host's filesystem.
Expected behavior
I expect the deploy script to either pull files from the devcontainer directly or find the respective mapping from the docker container's volume.
System information
Rerun the failing command with
--create-ticket
flag.SERVICE IMAGE │ LOCAL │ LINKED
─────────────────────────┼──────────────────┼────────────
supabase/postgres │ 15.1.1.78 │ 15.1.1.78
supabase/gotrue │ v2.155.3 │ v2.155.3
postgrest/postgrest │ v12.2.2 │ v12.2.2
supabase/realtime │ v2.29.15 │ -
supabase/storage-api │ v1.6.8 │ v1.6.8
supabase/edge-runtime │ v1.54.10 │ -
supabase/studio │ 20240701-05dfbec │ -
supabase/postgres-meta │ v0.83.2 │ -
supabase/logflare │ 1.4.0 │ -
supabase/supavisor │ 1.1.56 │ -
darthsim/imgproxy │ v3.8.0 │ -
Here's the debugging output:
The text was updated successfully, but these errors were encountered: