Expand the platformio dep installer to also install platforms and tools (#4716)

This commit is contained in:
Jesse Hills
2023-04-27 12:26:06 +12:00
committed by GitHub
parent 77f71acbc8
commit 6476357596
9 changed files with 69 additions and 47 deletions
+2 -2
View File
@@ -102,7 +102,7 @@ def _parse_platform_version(value):
try:
# if platform version is a valid version constraint, prefix the default package
cv.platformio_version_constraint(value)
return f"platformio/raspberrypi @ {value}"
return f"platformio/raspberrypi@{value}"
except cv.Invalid:
return value
@@ -148,7 +148,7 @@ async def to_code(config):
cg.add_platformio_option("platform", conf[CONF_PLATFORM_VERSION])
cg.add_platformio_option(
"platform_packages",
[f"earlephilhower/framework-arduinopico @ {conf[CONF_SOURCE]}"],
[f"earlephilhower/framework-arduinopico@{conf[CONF_SOURCE]}"],
)
cg.add_platformio_option("board_build.core", "earlephilhower")