Permission denied (os error 13): mkdir '/home/sa/.local/share/pkgx/pantry'
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- docker, typescript
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
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
- Langage dominant
- TypeScript
- Étoiles
- 64
- Forks
- 12
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de pkgxdev/libpkgx
-
Difficulté 2/5 1-3 heures Accessibilité débutants 48/100
-
versionable dependencies Ouverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
-
Creating an LTS tag for node js Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
Toutes les issues de pkgxdev/libpkgx
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
[Bug]: Matrix progress drafts fail with "Matrix runtime not initialized" during tool activity Ouvertebug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
Client support matrix inclusion Ouverteenhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
calcite-components needs triage refactor
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Esri/calcite-design-system#15203 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 90/100
danielmiessler/LifeOS#2218 ·