-
Notifications
You must be signed in to change notification settings - Fork 299
Closed
Description
Describe the bug
I was going through the start command implementation and noticed this block. On Windows, paths are split on the colon after the drive letter (e.g. D:), resulting in hostPath := "D". Because of this, the subsequent if check passes incorrectly, and function files on the host are mounted individually in addition to the functions directory.
cli/internal/functions/deploy/bundle.go
Lines 131 to 137 in 4785f7a
| for _, mod := range modules { | |
| hostPath := strings.Split(mod, ":")[0] | |
| if !strings.HasPrefix(hostPath, hostFuncDir) && | |
| (len(hostOutputDir) == 0 || !strings.HasPrefix(hostPath, hostOutputDir)) { | |
| binds = append(binds, mod) | |
| } | |
| } |
To Reproduce
Steps to reproduce the behavior:
- Create a new function
supabase functions new hello - Run
supabase start - Run
docker inspect --format='{{json .Mounts}}' supabase_edge_runtime_<PROJECT_ID>
Expected behavior
Behavior consistent with linux
Screenshots
System information
- Version of OS: windows 10
- Version of CLI: 2.48.3
Metadata
Metadata
Assignees
Labels
No labels

