mattytrentini / mpbuild

MicroPython build tool
MIT License
7 stars 3 forks source link

Allow build-container override to override just the container version #9

Open mattytrentini opened 3 weeks ago

mattytrentini commented 3 weeks ago

We could allow --build-container to specify just the container version by accepting a colon-prefixed container version.

So a user could execute either:

> mpbuild build UM_TINYPICO --build-container espressif/idf:v5.2.3

or, for the same effect:

> mpbuild build UM_TINYPICO --build-container :v5.2.3

Maybe allow the user to just pass in just the tag or the whole container?

if build_container_override.startswith(":"):
    build_container = build_container.split(":")[0] + build_container_override
else:
    build_container = build_container_override

Originally posted by @andrewleech in https://github.com/mattytrentini/mpbuild/issues/7#issuecomment-2305931981