Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: check for tool updates when printing current version#25

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

Open
MatteoPologruto wants to merge4 commits intomain
base:main
Choose a base branch
Loading
fromcheck-for-updates

Conversation

@MatteoPologruto
Copy link
Contributor

@MatteoPologrutoMatteoPologruto commentedNov 4, 2025
edited
Loading

Motivation

Users should know if a new version of the tool is available.

Change description

A message is printed if a new version of the tool is available when checking the current version:

$ ./build/arduino-flasher-cli versionArduino Flasher CLI 0.0.0-d6bef23A new release of Arduino Flasher CLI is available: 0.0.0-d6bef23 → 0.3.0https://github.com/arduino/arduino-flasher-cli/releases/latest

Additional Notes

Reviewer checklist

  • PR addresses a single concern.
  • PR title and description are properly filled.
  • Changes will be merged inmain.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.

@MatteoPologrutoMatteoPologruto self-assigned thisNov 4, 2025
@MatteoPologrutoMatteoPologruto added the enhancementNew feature or request labelNov 4, 2025
@MatteoPologrutoMatteoPologruto marked this pull request as ready for reviewNovember 4, 2025 16:57
@MatteoPologrutoMatteoPologruto requested a review froma teamNovember 4, 2025 16:57
Copy link
Contributor

@dido18dido18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I would display a notification about a new version being available before every command, not only when running the version command.

The update check should be non-blocking — if an error occurs during the check, a general warning should be shown without preventing the command from running.

Xayton reacted with thumbs up emoji
Co-authored-by: Per Tillisch <accounts@perglass.com>
Comment on lines +64 to +67
err:=checkForUpdates()
iferr!=nil {
feedback.Warning("failed to check for updates: "+err.Error())
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Maybe we should check updates also in other commands, although we could start with this for now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Why do those files become executable? Can you revert this change?

Copy link
ContributorAuthor

@MatteoPologrutoMatteoPologrutoNov 6, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I don't know, I downloaded the artifact generated by the check-licenses workflow and committed the changes

Copy link
Contributor

@lucarin91lucarin91Nov 6, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

That's probably Windows or WSL. Can you chmod everything in .licenses to 644 again?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@lucarin91lucarin91lucarin91 left review comments

@per1234per1234per1234 left review comments

@dido18dido18dido18 left review comments

At least 1 approving review is required to merge this pull request.

Assignees

@MatteoPologrutoMatteoPologruto

Labels

enhancementNew feature or request

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Check if a new version of thearduino-flasher-cli is available

4 participants

@MatteoPologruto@lucarin91@per1234@dido18

[8]ページ先頭

©2009-2025 Movatter.jp