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

Build cache files are completely cleared with one file change #2780

Open
3 tasks done
zatkhahi opened this issue Dec 10, 2024 · 0 comments
Open
3 tasks done

Build cache files are completely cleared with one file change #2780

zatkhahi opened this issue Dec 10, 2024 · 0 comments
Labels
type: imperfection Perceived defect in any part of project

Comments

@zatkhahi
Copy link

Describe the problem

Building with arduino-cli compile makes build cache in build-path directory. e.g.:
core
libraries
sketch
includes.cache
libraries.cache
...

but if any new file (header or cpp or event not compile-able file like .json files) adds to sketch folder it cleans all cache directory, even core and libraries. This will compile all core and libraries again and it takes too long.

To reproduce

1- compile a working project (specially with lots of dependencies)
e.g. run command
arduino-cli compile --fqbn esp32:esp32:esp32 demo --output-dir ./build/output --build-path ./build

2- add a new file to the sketch folder like test.h

3- see build directory while building started, all caches are removed

Expected behavior

whole build cache should not be removed by sketch only changes, at lease "core" and "libraries" which are too heavy to compile

Arduino CLI version

1.1.1

Operating system

Windows

Operating system version

Windows 11

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the nightly build
  • My report contains all necessary details
@zatkhahi zatkhahi added the type: imperfection Perceived defect in any part of project label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

1 participant