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

Updated arduino-cli to 0.35.x branch with a lot of libraries#761

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

Merged
cmaglie merged 10 commits intomainfromupdate-extract-lib
Oct 28, 2024

Conversation

@cmaglie
Copy link
Member

This brings the Arduino CLI integration up to 0.35.x branch (the latest before the big 1.0 break).
I've taken the chance to upgrade golang to 0.22.5 (we are still not supporting 0.23.0 in the Disttask.yml file).

@codecov
Copy link

codecovbot commentedOct 1, 2024
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.97%. Comparing base(cf59441) to head(0c7f6cf).
Report is 23 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@##             main     #761      +/-   ##==========================================- Coverage   90.05%   89.97%   -0.09%==========================================  Files          44       44                Lines        6800     6772      -28     ==========================================- Hits         6124     6093      -31- Misses        553      555       +2- Partials      123      124       +1
FlagCoverage Δ
unit89.97% <ø> (-0.09%)⬇️

Flags with carried forward coverage won't be shown.Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report?Share it here.

@cmagliecmaglie self-assigned thisOct 1, 2024
@cmagliecmaglie added type: enhancementProposed improvement dependencies labelsOct 1, 2024
@cmagliecmaglieforce-pushed theupdate-extract-lib branch 4 times, most recently fromde93d49 to48471b7CompareOctober 2, 2024 14:07
@per1234per1234 added topic: infrastructureRelated to project infrastructure and removed dependencies labelsOct 8, 2024
@per1234
Copy link
Contributor

per1234 commentedOct 16, 2024
edited
Loading

I apologize for introducing merge conflicts for this PR in the workflows@cmaglie. I have a couple more changes to make in the workflows to get them fully up to date and I'll take care of rebasing the PR once those are done. I'm not touching any Go code or dependencies or integration tests.

@cmaglie
Copy link
MemberAuthor

I apologize for introducing merge conflicts for this PR in the workflows@cmaglie.

No worries, I've already rebased it, the changes were trivial.

@cmaglie
Copy link
MemberAuthor

@per1234 I removed the checks forsketch.json from the ruleset since it's now deprecated in favor ofsketch.yaml, that's the reason for the small reduction in the test coverage.

I want to add checks for thesketch.yaml, but IMHO this should be done after we merge the support for the CLI 1.0+.

Copy link
Contributor

@alessio-peruginialessio-perugini left a comment

Choose a reason for hiding this comment

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

🚀

per1234
per1234 previously requested changesOct 16, 2024
Copy link
Contributor

@per1234per1234 left a comment
edited
Loading

Choose a reason for hiding this comment

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

This needs to be updated:

GO_VERSION:1.17

The reason I did this is because I found that, without it, the project had a lot of unused transitive dependencies (for example, when I updated a direct module dependency and did ago mod tidy, a former dependency of that direct dependency that was no longer used by the new version would be left behind in the go.mod+go.sum, and thus in the license metadata, even though it was no longer used by anything). Once I added the-compat=1.17 flag,go tidy behaved exactly as I expected. Apparently the unexpected behavior was due to Go needing to do a suboptimal tidy in order to provide compatibility with certain other versions of Go, but we don't support the use of the project with versions of Go other than the one specified by thego directive so that isn't of interest.

I don't know whether the-compat flag is needed for proper tidy behavior with 1.22 though.


This needs to be updated:

-[Go](https://golang.org/doc/install) version 1.17 or later

Or we can merge#801 now and render it obsolete:

-[Go](https://golang.org/doc/install
- The**Go** version in use is defined in the`go` directive of
[`go.mod`](https://github.com/arduino/arduino-lint/blob/main/go.mod).

@cmaglie
Copy link
MemberAuthor

cmaglie commentedOct 18, 2024
edited
Loading

Or we can merge#801 now and render it obsolete:

-[Go](https://golang.org/doc/install
- The**Go** version in use is defined in the`go` directive of
[`go.mod`](https://github.com/arduino/arduino-lint/blob/main/go.mod).

With the latestgo versions, the compiler should automatically set compatibility mode with the toolchain version specified in thego.mod file, so it should be enough to download a version of the toolchain that is >= of the required version. This differs from older releases, where you had to download the exact version ofgo used for the build. At least, this is my experience. Maybe we can try to build this project with go 1.23 to confirm it.

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

Reviewers

@MatteoPologrutoMatteoPologrutoAwaiting requested review from MatteoPologruto

@per1234per1234Awaiting requested review from per1234

2 more reviewers

@alessio-peruginialessio-peruginialessio-perugini approved these changes

@umbynosumbynosumbynos approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

@cmagliecmaglie

Labels

topic: infrastructureRelated to project infrastructuretype: enhancementProposed improvement

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@cmaglie@per1234@alessio-perugini@umbynos

[8]ページ先頭

©2009-2025 Movatter.jp