Skip to content

Commit

Permalink
fix(functions): duplicate mount point when passing fallback as flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Apr 18, 2024
1 parent 82b3892 commit 1639067
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions internal/functions/serve/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,13 @@ func ServeFunctions(ctx context.Context, envFilePath string, noVerifyJWT *bool,
return err
}
}
modules, err := utils.BindImportMap(fallbackImportMapPath, dockerFallbackImportMapPath, fsys)
if err != nil {
return err
if fallbackImportMapPath != importMapPath {
modules, err := utils.BindImportMap(fallbackImportMapPath, dockerFallbackImportMapPath, fsys)
if err != nil {
return err
}
binds = append(binds, modules...)
}
binds = append(binds, modules...)

if err := utils.MkdirIfNotExistFS(fsys, utils.FunctionsDir); err != nil {
return err
Expand Down

0 comments on commit 1639067

Please sign in to comment.