Use mbed feature branch

Hi,
currently I am trying to use a feature branch of mbed with PIO.
I delete all the content of the framework-mbed folder and clone the branch into there.
But platformio always re-downloads mbed and overwrites my branch.

how can I do that?

thanks,
Jonas

Try to keep package.json file inside the folder. But I’m not sure that will work. PlatformIO mbed package is patched by PlatformIO developers, as far as I understand. You may need to keep platformio subfolder too and I don’t know what else.

thanks!
I left package.json and the platformIO folder and it sccesfuly compiled.

@PlatformIO team, It would be great to see a feature by blatformIO to do this without such a workaround.