Platform = espressif32@^4.0.0 is not using latest 4.x.x release


I have specified platform = espressif32@^4.0.0 in my platformio.ini but when building it keeps using version 4.1.0 while newer versions are already released. I would expect the ^ to handle this.

Am I doing something wrong?

I don’t think PlatformIO auto-updates, it’s just that this semver version is used when the platform has to be installed from scratch. Technically, 4.1.0 fits the ^4.0.0 bill.

pio pkg outdated in the CLI shows outdated packages, this should include the platform.

To manually update, execute pio platform update espressif32.