-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
👟 Reproduction steps
Pointing to threads in our community you can share code using symlinks and then Appwrite cli resolve symlinks automatically.
- https://appwrite.io/threads/1100486753833451551 (Drake wrote 'ya, the Appwrite CLI WILL RESOLVE THE SYMLINK and include it in the tar.gz')
- https://appwrite.io/threads/1160519311270625324 (Drake wrote 'you'll need to CREATE A SYMLINK in your function folder that points to the common code')
- https://appwrite.io/threads/1166449773386158161 (Drake wrote 'Your parent directory is probably not included in the code that is deployed. One way to make sure it's included is to USE SYMLINKS.')
I have created a simple example of symlink usage: https://github.com/aandrosov-freelancer/appwrite-code-sharing-functions-example
You can copy it and run signup function locally using Appwrite CLI
👍 Expected behavior
Appwrite cli resolves symlinks and function works well and see common directory
👎 Actual Behavior
Appwrite cli throws exception:
/opt/homebrew/Cellar/appwrite/13.3.0/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:80046
throw new Ctor(message);
^
RangeError: path should be a `path.relative()`d string, but got "../common"
at throwError (/opt/homebrew/Cellar/appwrite/13.3.0/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:80046:13)
at checkPath (/opt/homebrew/Cellar/appwrite/13.3.0/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:80060:16)
at Ignore._test (/opt/homebrew/Cellar/appwrite/13.3.0/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:80098:9)
at Ignore.ignores (/opt/homebrew/Cellar/appwrite/13.3.0/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:80144:21)
at ignored (/opt/homebrew/Cellar/appwrite/13.3.0/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:139926:24)
at matchPatterns (/opt/homebrew/Cellar/appwrite/13.3.0/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:83494:22)
at FSWatcher._userIgnored (/opt/homebrew/Cellar/appwrite/13.3.0/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:83512:18)
at FSWatcher._isIgnored (/opt/homebrew/Cellar/appwrite/13.3.0/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:86621:21)
at FsEventsHandler._handleFsEventsSymlink (/opt/homebrew/Cellar/appwrite/13.3.0/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:85900:24)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
Emitted 'error' event on FSWatcher instance at:
at FSWatcher._handleError (/opt/homebrew/Cellar/appwrite/13.3.0/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:86510:16)
at FsEventsHandler._handleFsEventsSymlink (/opt/homebrew/Cellar/appwrite/13.3.0/libexec/lib/node_modules/appwrite-cli/dist/cli.cjs:85914:24)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
Node.js v25.6.0🎲 Appwrite version
Version 1.8.x
💻 Operating system
MacOS
🧱 Your Environment
Appwrite CLI version: 13.3.0
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels