-
-
Notifications
You must be signed in to change notification settings - Fork 398
[ Breaking Change in upcoming Nightly ] Sketch level build folder is not created as default #1051
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
Comments
@silvanocerza @per1234 @rsora please comment if you want anything to be changed |
What is the easiest / most straightforward way to check that the sketch can be compiled, and nothing more? In other words, I'd prefer that the artifacts stay out of sight in some temp directory and never pollute the project workspace. How should I plan to achieve this? Best-case scenario for me is purely via command-line args (no config file writing). |
Starting from the next release of Arduino CLI, this will be the default behavior, so no special command will be needed. With the current release version 0.13.0, you could use |
Dear brave testers and bleeding edge users,
as time moves forward we introduce another breaking change in our next Nightly Build, so be wary of the changes and act accordingly.
If your workflow relies on picking files from the enclosed
build
folder you'll need to manually specify the output as per this PR #1042 (comment)Before you could rely on a
--dry-run
flag which was kind of semantically incorrect, since it produced artifacts.Now you need to specify the
-e | --export-binaries
flag if you want the old behaviour to be observed, and this has also been turned into both a configuration parameter forarduino-cli.yaml,
as well as an Environment Variable.These are, respectively
sketch.always_export_binaries
for thesketch
section in thearduino-cli.yaml
file andARDUINO_SKETCH_ALWAYS_EXPORT_BINARIES
for the ENV variableThese need to be set to
true
in order to take effect orfalse
for the default behaviour.If neither the
arduino-cli.yaml
parameter nor the Environment Variable are present, the default behaviour applies.If your workflow already uses
--output-dir
you do not need to specify any of the above, because explicitly setting an output directory will carry such behaviour with and only copy files where requested.This new behaviour reduce the need to manually add items to
.gitignore
and also reduces littering since a build folder is created in temp paths and those get flushed when the system needs to.example for
arduino-cli.yaml
entryThe text was updated successfully, but these errors were encountered: