Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork435
Allow upload using binaries from build-path#675
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
rsora commentedApr 24, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
After going through your code and a bit of discussion with@cmaglie here my considerations: TL;DR: with#655 nad this PR, we are basically trying to solve a "Core configuration" problem, rather than a CLI problem This is our context:
So, it seems that we have the following strategies to solve this issue in the CLI:
Actually I believe that 4 could be the best strategy because:
@cmaglie WDYT? |
Uh oh!
There was an error while loading.Please reload this page.
Please check if the PR fulfills these requirements
New flags are added to the
uploadcommand:With
-n, --upload-from-build-paththe CLI will upload binaries from the build path.--build-pathforce a custom build-path instead of the build-path autogenerated by the CLI.The new behaviour is now the default if chained compile + upload (
compile -u) is used.Currently:
arduino-cli compile -u ...will produce the binaries in the sketch folder will use them for the upload.arduino-cli compile -n -u ...will not work (because the-n/--dry-runwill not copy binaries in the sketch folder and consequently the upload will fail.After the patch
arduino-cli compile -u ...will produce the binaries in the sketch folder but for the upload the binaries in the build path will be used for the upload. This shouldfixUpload build path is different than output build path #641 at least for the chained build+upload.arduino-cli compile -n -u ...will now work, it will upload without creating the binaries in the sketch folder (because the-n/--dry-runwill not copy binaries in the sketch folder but the upload will use the binaries from the build-path 👍 ).It should not.