cli icon indicating copy to clipboard operation
cli copied to clipboard

Unable to deploy functions because referenced dependencies are not available

Open alita-moore opened this issue 7 months ago • 8 comments

Describe the bug I can't share code between functions because the deploy script claims that it can't find files that are actually available locally. I assume it's some kind of docker context issue.

To Reproduce Steps to reproduce the behavior:

  1. Create a supabase project
  2. Create a folder at the same level as the supabase project
  3. Create a function
  4. Import from the folder you created earlier into the function

You can see an example file structure from this example

Expected behavior I expect the deploy to work and for the bundler to have access to the files referenced

Screenshots If applicable, add screenshots to help explain your problem.

System information Rerun the failing command with --create-ticket flag.

  • Ticket ID: e0f757134382497ca76b840b2109ec03

  • Version of OS: Ubuntu 23.10

  • Version of CLI: 1.183.5

  • Version of Docker: Docker version 27.0.3, build 7d4bcd8

  • Versions of services: Using workdir /Users/alitamoore/workspaces/monorepo/infra/supabase-platform

     SERVICE IMAGE      │      LOCAL       │   LINKED
    

─────────────────────────┼──────────────────┼───────────── supabase/postgres │ 15.1.0.153 │ 15.1.0.153 supabase/gotrue │ v2.155.3 │ v2.155.3 postgrest/postgrest │ v12.0.1 │ v12.0.1 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 │ -

This is a major problem because it means I can't share code between functions which breaks a lot of use cases

alita-moore avatar Jul 19 '24 01:07 alita-moore