Permission denied (os error 13): mkdir '/home/sa/.local/share/pkgx/pantry'
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- docker, typescript
Research direction
Start with src/hooks/useSync.ts and the ensure_pantry call in src/app.ts, using the reported Docker volume mounts to reproduce the permission error. Trace the mkdir path shown in the stack trace and verify that starting pkgx with the shared directories no longer fails with Permission denied.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 64
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pkgxdev/libpkgx
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·