mirror of
https://github.com/esphome/esphome.git
synced 2026-08-27 08:28:30 +00:00
Warn when a bundled library has no manifest
Core libraries all ship one, so an absent manifest most likely means a torn framework extraction; at debug the miscompile risk was invisible.
This commit is contained in:
@@ -267,8 +267,9 @@ def _bundled_library(framework_path: Path, name: str) -> ArduinoLibrary:
|
||||
elif (manifest := lib_dir / "library.properties").is_file():
|
||||
data = parse_library_properties(manifest)
|
||||
else:
|
||||
# Defaults build core libraries; can also mean a torn extraction
|
||||
_LOGGER.debug("Bundled library %s has no manifest; using defaults", name)
|
||||
# Visible: core libraries all ship a manifest, so an absent one
|
||||
# most likely means a torn framework extraction
|
||||
_LOGGER.warning("Bundled library %s has no manifest; using defaults", name)
|
||||
data = {}
|
||||
if isinstance(data, dict):
|
||||
# Bundled manifest deps are never walked; make the skip visible
|
||||
|
||||
Reference in New Issue
Block a user