Closed mcspr closed 4 years ago
On a related note, does that PKGREL
value need to update on updates? How will the PIO stuff handle, say, fixing a bug in newlib and releasing another 100100 version?
STAMP variable will be updated though:
import semantic_version a = semantic_version.Version("5.100100.200706") b = semantic_version.Version("5.100100.200804") b > a True
Replace leading zeroes with minor.major.patch 0-padding, because PlatformIO uses semantic version module for package version sorting. Meaning, future 10.2 must be 100200
see https://github.com/platformio/platformio-core/issues/3612#issuecomment-667624349
Effectively, this does nothing atm, because we don't have a list of available versions and install happens by directly setting the version. I'd wait until response from PIO guys though, whether this package deployment can be simplified (perhaps we will get a 'public' registry a-la npm or the option I proposed in the pio-core issue tracker)
Also, so I don't forget this fix is needed.