Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix core upgrading not uninstalling unused tools #1219

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 1 commit into from
Mar 17, 2021

Conversation

silvanocerza
Copy link
Contributor

Please check if the PR fulfills these requirements

  • 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?

Fixes an existing command.

  • What is the current behavior?

core install, core upgrade and upgrade commands don't remove necessary tools used by the previously installed core version but unused by the newly installed one.

  • What is the new behavior?

core install, core upgrade and upgrade commands now remove unused tools if the core that is being upgraded doesn't need them in the new version.

Nope.

  • Other information:

None.


See how to contribute

@silvanocerza silvanocerza requested a review from a team March 11, 2021 10:43
@silvanocerza silvanocerza self-assigned this Mar 11, 2021
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

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

  • ✔️ Tool removed on upgrade when it's not dependency of any other platform (e.g., upgrade from arduino:[email protected] removes arduino:[email protected])
  • ✔️ Tool not removed on upgrade when it's a dependency of other platform (e.g., upgrade from arduino:[email protected] leaves arduino:[email protected] when arduino:[email protected] is installed)
  • ✔️ Tool not removed on upgrade when it's a dependency of other platform that doesn't have installed.json (i.e., installed via classic Arduino IDE)

Thanks Silvano!

@silvanocerza silvanocerza force-pushed the scerza/core-upgrade-tools-removal branch from d46b3be to 80042c8 Compare March 11, 2021 15:59
@silvanocerza silvanocerza force-pushed the scerza/core-upgrade-tools-removal branch from 80042c8 to 56407ba Compare March 16, 2021 14:46
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

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

The previous results I reported were done using arduino-cli core install and arduino-cli core upgrade. The integration tests revealed a problem specific to arduino-cli upgrade, which has been fixed.

I have now repeated the tests, this time including arduino-cli upgrade and found everything to be working as expected. I was able to reproduce the arduino-cli upgrade issue before the fix.

@silvanocerza silvanocerza merged commit df03ad7 into master Mar 17, 2021
@silvanocerza silvanocerza deleted the scerza/core-upgrade-tools-removal branch March 17, 2021 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants