arduino / arduino-cli

Arduino command line tool
https://arduino.github.io/arduino-cli/latest/
GNU General Public License v3.0
4.23k stars 370 forks source link

Allow users to provide multiple build cache paths during compilation. #2611

Closed alessio-perugini closed 1 month ago

alessio-perugini commented 1 month ago

Describe the request

Create a new config build_cache.core.extra_paths that contains paths of other precompiled cores.

During the compilation phase the arduino-cli will look for precompiled cores present in the directories listed in the new config build_cache.core.extra_paths.

What happens when the user sets both the --build-cache-path and build_cache.core.extra_paths config ?

What happens when the user sets only the build_cache.core.extra_paths config ?

Describe the current behavior

Currently is not possible to read the precompiled cores from multiple path. We can only read the in the default tmp dir, or in the provided path of --build-cache-path

Arduino CLI version

nightly

Operating system

Linux

Operating system version

23.10

Additional context

No response

Issue checklist