When a compile supplies a 'libraries' manifest, _resolve_library_components merges a USER-installed library only if it's declared in that set. A sketch therefore never picks up an unrelated library from the shared dir (another user's install, or a same-named clash) — the manifest is the resolution scope. - _resolve_library_components(allowed_libraries): gate user-lib merges on manifest membership; match by folder name OR library.properties name=, normalised (display name vs on-disk folder differ by separators/case). Core/bundled libs are never gated. None = legacy scan-all (unchanged). - Threaded through compile() -> _compile_in_dir. - compile.py: CompileRequest.libraries; folded into the async dedup _job_key so a different manifest doesn't dedup to a job built with another. Opt-in: omitting 'libraries' preserves current behaviour exactly. Regression: test/backend/unit/test_espidf_core_first.py::TestManifestScope |
||
|---|---|---|
| .. | ||
| api | ||
| core | ||
| database | ||
| mcp | ||
| models | ||
| schemas | ||
| services | ||
| utils | ||
| __init__.py | ||
| main.py | ||