#2466: remove broken software links on uninstall - #2496
Open
HadiDawoud wants to merge 3 commits into
Open
HadiDawoud wants to merge 3 commits into
HadiDawoud wants to merge 3 commits into
Conversation
HadiDawoud
force-pushed
the
feature/2466-uninstall-broken-link
branch
from
September 16, 2026 11:39
bdd7ea6 to
3b2f22c
Compare
Collaborator
Coverage Report for CI Build 35190508609Coverage increased (+0.005%) to 74.163%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions9 previously-covered lines in 3 files lost coverage.
Coverage Stats💛 - Coveralls |
Contributor
|
Thanks @HadiDawoud, nice fix. Tested this on Mac and Windows. Unit tests: UninstallCommandletTest - 11/11 passed. Manual: installed gradle, deleted $IDE_ROOT/_ide/software/default/gradle so software/gradle became a broken link, then ran uninstall from this branch. Got Successfully uninstalled gradle and the link was gone. Same on Windows (Explorer showed “location is not available” before uninstall, folder gone after). Looks good to me, the original issue is fixed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes #2466
Implemented changes:
ide uninstallalso removes broken software symlinks under$IDE_HOME/software/«tool».ide.software.version) are cleaned up as wellNOFOLLOW_LINKSduring local tool uninstallTesting instructions
mvn -pl cli -Dtest=UninstallCommandletTest testand verify all 11 tests passide install gradle, delete the version under$IDE_ROOT/_ide/software/default/gradle, thenide uninstall gradlethe broken link under$IDE_HOME/software/gradleshould be removed$IDE_HOME/software/pipwith only.ide.software.version, runide uninstall pipthe folder should be removedChecklist for this PR
Make sure everything is checked before merging this PR. For further info see
our DoD.
mvn clean testlocally all tests pass and build is successful#«issue-id»: «brief summary»(e.g.#921: fixed setup.batand notfeature/921 fixed setup.bat). If no issue ID exists, title only.In Progressand assigned to you or there is no issue (might happen for very small PRs)with
internalpom.xmlfiles or otherwise if runtime dependencies changed, you have updated our LICENSE.asciidoc