Skip to content

[skip changelog] Updated the deprecated ioutil dependency #2054

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

Merged
merged 5 commits into from
Feb 1, 2023
Merged

[skip changelog] Updated the deprecated ioutil dependency #2054

merged 5 commits into from
Feb 1, 2023

Conversation

zachary-walters
Copy link
Contributor

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)

What kind of change does this PR introduce?

This change updates the codebase to use alternatives to the ioutil dependency. ioutil has been deprecated since go v1.16.

What is the current behavior?

The current behavior is unchanged.

What is the new behavior?

There is no new behavior

Does this PR introduce a breaking change, and is titled accordingly?

No

Other information

Please see go's official statement about ioutil's deprecation in v1.16: https://go.dev/doc/go1.16#ioutil

@CLAassistant
Copy link

CLAassistant commented Jan 29, 2023

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Jan 29, 2023

Codecov Report

Base: 36.56% // Head: 36.64% // Increases project coverage by +0.07% 🎉

Coverage data is based on head (6715f39) compared to base (4b70e02).
Patch coverage: 35.29% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2054      +/-   ##
==========================================
+ Coverage   36.56%   36.64%   +0.07%     
==========================================
  Files         228      228              
  Lines       19376    19405      +29     
==========================================
+ Hits         7084     7110      +26     
  Misses      11463    11463              
- Partials      829      832       +3     
Flag Coverage Δ
unit 36.64% <35.29%> (+0.07%) ⬆️

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

Impacted Files Coverage Δ
arduino/resources/checksums.go 43.56% <0.00%> (ø)
internal/cli/cli.go 0.00% <0.00%> (ø)
legacy/builder/utils/utils.go 54.63% <0.00%> (-0.77%) ⬇️
legacy/builder/gohasissues/go_has_issues.go 50.00% <66.66%> (-0.77%) ⬇️
commands/lib/search.go 88.15% <0.00%> (-3.95%) ⬇️
arduino/cores/packagemanager/package_manager.go 68.19% <0.00%> (+2.36%) ⬆️
arduino/cores/packagemanager/download.go 34.61% <0.00%> (+5.12%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@per1234 per1234 added topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement labels Jan 30, 2023
@per1234 per1234 dismissed their stale review January 30, 2023 14:06

Requested change has been made. Thanks!

Copy link
Member

@cmaglie cmaglie left a comment

Choose a reason for hiding this comment

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

HI @zachary-walters!

I've added a couple of nitpicks, but for the rest LGTM, we can merge it as soon as you fix them.
Thanks!

@cmaglie cmaglie merged commit dca3df7 into arduino:master Feb 1, 2023
@cmaglie cmaglie self-assigned this Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants