Skip to content

Uninstall on Windows should remove the same files as on macOS/Linux#2401

Merged
mitchell-as merged 2 commits intoversion/0-37-0-RC1from
mitchell/dx-1614
Mar 1, 2023
Merged

Uninstall on Windows should remove the same files as on macOS/Linux#2401
mitchell-as merged 2 commits intoversion/0-37-0-RC1from
mitchell/dx-1614

Conversation

@mitchell-as
Copy link
Copy Markdown
Collaborator

@mitchell-as mitchell-as commented Feb 28, 2023

BugDX-1614 Reinstall is fail if previous version was uninstalled and all config/cache folders remain

The previous fix was erroneously tailored towards the integration tests. It was not deleting the installer exe and install root stub.

@mitchell-as mitchell-as requested a review from MDrakos February 28, 2023 19:33
@mitchell-as mitchell-as marked this pull request as ready for review February 28, 2023 19:33
@mitchell-as mitchell-as removed the request for review from MDrakos February 28, 2023 22:11
@mitchell-as mitchell-as marked this pull request as draft February 28, 2023 22:11
@mitchell-as mitchell-as changed the title Always delete the branch name directory on Windows. Uninstall on Windows should remove the same files as on macOS/Linux Feb 28, 2023
@mitchell-as mitchell-as requested a review from MDrakos February 28, 2023 23:03
@mitchell-as mitchell-as marked this pull request as ready for review February 28, 2023 23:03
@mitchell-as mitchell-as removed the request for review from MDrakos February 28, 2023 23:08
@mitchell-as mitchell-as marked this pull request as draft February 28, 2023 23:08
@mitchell-as mitchell-as force-pushed the mitchell/dx-1614 branch 2 times, most recently from f98cbbb to 31f5248 Compare March 1, 2023 00:13
It does not contain cache and config directories.
Only for integration tests are the cache and config directories subdirectories.
@mitchell-as mitchell-as requested a review from MDrakos March 1, 2023 15:23
@mitchell-as mitchell-as marked this pull request as ready for review March 1, 2023 15:23
Copy link
Copy Markdown
Member

@MDrakos MDrakos left a comment

Choose a reason for hiding this comment

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

This fixes our integration tests CI issues but could legitimately mess with users attempting to uninstall the state tool as part of their CI steps... can we use condition.InTest instead?

@mitchell-as mitchell-as requested a review from MDrakos March 1, 2023 16:51
@mitchell-as mitchell-as merged commit 795573b into version/0-37-0-RC1 Mar 1, 2023
@mitchell-as mitchell-as deleted the mitchell/dx-1614 branch March 1, 2023 16:56
@mitchell-as mitchell-as restored the mitchell/dx-1614 branch March 27, 2023 18:29
@mitchell-as mitchell-as deleted the mitchell/dx-1614 branch March 27, 2023 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants