Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 tasks done
alessio-perugini opened this issue May 23, 2024 · 0 comments · Fixed by #2612
Closed
3 tasks done

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

alessio-perugini opened this issue May 23, 2024 · 0 comments · Fixed by #2612
Assignees
Labels
conclusion: resolved Issue was resolved topic: build-process Related to the sketch build process topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@alessio-perugini
Copy link
Contributor

alessio-perugini commented May 23, 2024

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 ?

  • the arduino-cli will always look for the extra_paths present in the config, and then the one in the --build-cache-path flag.
  • In case the precompiled core doesn't exist, the write destination will be the one provided with the --build-cache-path flag

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

  • the arduino-cli will always look for the extra_paths present in the config, and then the one in the default location (the temp directory).
  • In case the precompiled core doesn't exist, the write destination will be the default location (the temp directory)

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

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the nightly build
  • My request contains all necessary details
@alessio-perugini alessio-perugini added the type: enhancement Proposed improvement label May 23, 2024
@alessio-perugini alessio-perugini added the topic: code Related to content of the project itself label May 23, 2024
@per1234 per1234 added the topic: build-process Related to the sketch build process label May 23, 2024
@per1234 per1234 added the conclusion: resolved Issue was resolved label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: build-process Related to the sketch build process topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants