This commit is contained in:
Nilton Constantino
2026-02-02 12:00:05 +00:00
parent ba61458a78
commit 99d3dc38a1
4 changed files with 258 additions and 53 deletions
-39
View File
@@ -1,42 +1,3 @@
## PR-11 — Dependency Fetching v0: local cache layout + git/path fetch
**Why:** Graph resolution needs a concrete directory for each dependency.
### Scope
* Implement `prometeu_compiler::deps::fetch`:
* `fetch_path(dep, base_dir) -> ProjectDir`
* `fetch_git(dep, cache_dir) -> ProjectDir`
* Define a cache layout:
* `~/.prometeu/cache/git/<hash>/...` (or configurable)
* the dependency is *materialized* as a directory containing `prometeu.json`
* For git deps (v0):
* accept `git` URL + optional `version`
* support `version: "latest"` as default
* implementation can pin to HEAD for now (but must expose in diagnostics)
### Deliverables
* Config option: `PROMETEU_CACHE_DIR` override
* Errors:
* clone failed
* missing manifest in fetched project
### Tests
* path fetch resolves relative paths
* cache path generation deterministic
### Acceptance
* Resolver can rely on fetcher to produce directories.
---
## PR-12 — Module Discovery v0: find PBS sources per project
**Why:** Once deps are resolved, the compiler must discover compilation units.