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
When I use pkgx in docker, I use the -v to share the host and the contents of the container to avoid duplicate downloads. This caused some problems when starting the pkgx container, and I think it's necessary for useSync to check if the directory exists when creating it.
docker run \
-v ~/.pkgx:/home/sa/.pkgx \
-v ~/.local:/home/sa/.local \
...
× unexpected error Permission denied (os error 13): mkdir '/home/sa/.local/share/pkgx/pantry'
│ PermissionDenied: Permission denied (os error 13): mkdir '/home/sa/.local/share/pkgx/pantry'
│ at Object.mkdirSync (ext:deno_fs/30_fs.js:132:7)
│ at Path.mkdir (https://deno.land/x/libpkgx@v0.15.0/src/utils/Path.ts:330:12)
│ at default (https://deno.land/x/libpkgx@v0.15.0/src/hooks/useSync.ts:12:42)
│ at ensure_pantry (file:///home/runner/work/pkgx/pkgx/src/app.ts:143:11)
│ at default (file:///home/runner/work/pkgx/pkgx/src/app.ts:38:15)
│ at file:///home/runner/work/pkgx/pkgx/entrypoint.ts:59:9
The text was updated successfully, but these errors were encountered:
I know the default filesystem driver on docker desktop for Mac causes frequent permission issues. Not looking at them ATM, but the middle one works fine.
When I use pkgx in docker, I use the -v to share the host and the contents of the container to avoid duplicate downloads. This caused some problems when starting the pkgx container, and I think it's necessary for useSync to check if the directory exists when creating it.
The text was updated successfully, but these errors were encountered: