PlatformIO Community

Local platform_package sources

Is it possible to do specify a local path for a patform_package like so:

platform_packages =
  framework-foobar @ ~/src/foobar

If so, how can I achieve such result?

@ivankravets is it possible to point platform_packages at local paths?

1 Like

I’d also like to note however that the platform_packages only really make sense when it’s a link to a internet website / repository, otherwise it’s not reproducible upon other computers without special setup.

1 Like

That, or developing stuff locally, before packaging it up… :wink:

It should work but will try to copy contents of package instead of using it as a symlink. I remember someone opened an issue for this case.

When I try to do it, the following happens:

Processing esp32dev (platform: espressif32; framework: arduino, espidf; board: esp32dev)
---------------------------------------------------------------------------------------------------------------------------------------------------------
PackageManager: Installing framework-espidf @ ~/Development/esp-idf
Downloading  [####################################]  100%          
Unpacking  [####################################]  100%          
Warning! Package Mirror: Package version 3.40000.200303 doesn't satisfy requirements ~/Development/esp-idf
Looking for another mirror...
Downloading  [####################################]  100%          
Unpacking  [####################################]  100%          
Warning! Package Mirror: Package version 3.40000.200303 doesn't satisfy requirements ~/Development/esp-idf
Looking for another mirror...
Error: Could not install 'framework-espidf' with version requirements '~/Development/hyper/esp-idf' for your system 'darwin_x86_64'.

Please try this solution -> http://bit.ly/faq-package-manager

Using a symlink now works:

platform_packages =
    platformio/framework-arduinoespressif32 @ symlink://C:/Users/user/arduino-esp32