GitTree.is_file accepts a path that leaves the tree, so a pinned source and an unpinned one disagree on --manifest ../x
I maintainer di solito rispondono entro 1 giorno
@antonwolfy ci sta già lavorando.
Dal 10/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
WorkTree raises SourceArgumentError("path escapes the repository: ../outside.yaml") (dokimi/repos/source.py:124) but GitTree.is_file (source.py:217) only tests membership in the commit's file list, so it returns false.
Repro: dokimi eval check <repo> --manifest ../outside.yaml --out out exits 2 with Error: path escapes the repository: ../outside.yaml; dokimi eval check <repo>@<sha> --manifest ../outside.yaml --out out exits 1 with ✗ ../outside.yaml: invalid repo_manifest.v1: and manifest not found. The same holds for repo run, --from replay and --from prs.
Fix options: make GitTree.is_file/is_dir raise SourceArgumentError for a normalised path starting with .. or absolute, as WorkTree does, then update the contract §4.3, §4.6, §4.8 and quickstart.md; or keep the difference and leave the documented wording.
Follow-up from the review of #575: https://github.com/intel/dokimi/pull/575#discussion_r4529643274
- Lingua principale
- Python
- Stelle
- 11
- Fork
- 9
- Merge medio
- 1g 9h
- PR unite (30g)
- 426
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di intel/dokimi
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di intel/dokimi
Issue simili
-
Wayback LinksAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
chnm/teachinghistory-hugo#53 ·
-
gpt-oss "Forcing a tool call" row no longer reproduces: tool_choice is now honoured on every surfaceAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
aws-samples/sample-per-model-bedrock#840 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
521xueweihan/HelloGitHub#4318 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
DiamondLightSource/eiger-correction#2 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
django-cms/djangocms-frontend#413 ·