mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 12:35:25 +00:00
[clang-tidy] Hash idf_component.yml and trigger hash hook on more inputs (#16753)
Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
This commit is contained in:
@@ -105,6 +105,12 @@ def calculate_clang_tidy_hash(repo_root: Path | None = None) -> str:
|
||||
sdkconfig_content = read_file_bytes(sdkconfig_path)
|
||||
hasher.update(sdkconfig_content)
|
||||
|
||||
# Hash esphome/idf_component.yml: its managed deps drive the ESP-IDF
|
||||
# build's include set, which clang-tidy analyzes.
|
||||
idf_component_path = repo_root / "esphome" / "idf_component.yml"
|
||||
if idf_component_path.exists():
|
||||
hasher.update(read_file_bytes(idf_component_path))
|
||||
|
||||
return hasher.hexdigest()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user