Hoist find_ninja to build_helpers, type the installed paths, dedupe espidf ccache env

This commit is contained in:
J. Nick Koston
2026-08-20 15:46:07 -05:00
parent 3a51514fc1
commit b90aeb17e3
6 changed files with 110 additions and 95 deletions
+2 -1
View File
@@ -1400,8 +1400,9 @@ def _ccache_patches(tmp_path: Path, which: str | None, build_path: Path | None):
"esphome.espidf.framework.get_idf_tools_path",
return_value=tmp_path / "tools",
),
# ccache_defaults_env (framework_helpers) reads CORE at call time
patch(
"esphome.espidf.framework.CORE",
"esphome.core.CORE",
SimpleNamespace(build_path=build_path),
),
)