pr 54
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user