Locking versions of framework and compiler

For production firmware we lock our builds to specific versions of compiler, libraries and framework. Is it possible to do this with PlatformIO. That is lock project to only use certain versions of framework and tools?

Thanks
Trampas

Yes, lock the version of the used platform = value at the version you’re currently using. This locks framework + compiler and all other tools. This is documented.