Closed hel06492 closed 1 year ago
@hel06492, Thank you for this PR. Could you give us a bit of background on why it is desirable or what problem it solves? Next, why tie it to an arduino_ci version? If it is desirable, why not have it take effect immediately? Presumably people using the old version will already have the legacy behavior. Thanks!
@jgfoster The --dry-run
flag was removed from version 0.14.0 and as for version 0.19.0 arduino-cli no longer accepts the flag. It fails with the following error. I can't find the changelog, only a forum post about the change.
Compiling Blink.ino for arduino:avr:mega:cpu=atmega2560...
Last command: $ /usr/bin/arduino-cli --format json compile --fqbn arduino:avr:mega:cpu=atmega2560 --warnings all --dry-run /home/salaryman/Arduino/trial.errors/Blink/examples/Blink/Blink.ino
Error: unknown flag: --dry-run
The version check is for older versions which might give unexpected behavior without the --dry-run
flag.
Please let me know if there are more things I need to fix/add for this pull request. Thanks.
@hel06492, I think some of my confusion is that the change refers to arduino_ci
(Continuous Integration) while it appears that it should refer to arduino_cli
(Command Line Interface). Could you update the title and other text in the PR and comments in the code to make that clarification? Thanks!
Hi @hel06492, nice work on the ruby side of things! It looks like this relates to #277 👍
Please let me know if there are more things I need to fix/add for this pull request.
I only found one issue. In general, I would welcome contributions that upgrade DESIRED_ARDUINO_CLI_VERSION
to the latest.
Hi @jgfoster @ianfixes Thanks for the suggestions. I've made changes according to those feedbacks.
@hel06492 Have you selected "allow edits from maintainers" on your PR? I can probably take care of the remaining issues.
@ianfixes yes, it's already checked
@ianfixes, I'm going through the open PRs and wonder if this can be merged. Thanks!
I've merged this with a larger body of work that will be merged as part of #334 -- thanks!
Highlights from
CHANGELOG.md