Skip to content
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

fix: remove unsafe remove of install folder #372

Merged
merged 3 commits into from
Feb 11, 2024

Conversation

merceyz
Copy link
Member

@merceyz merceyz commented Feb 3, 2024

#291 introduced an unsafe remove which sometimes break parallel installs.

@aduh95

This comment was marked as resolved.

@merceyz merceyz changed the title fix: remove unsafe remove of install folder fix!: remove unsafe remove of install folder Feb 10, 2024
@merceyz merceyz force-pushed the merceyz/fix/remove-unsafe-remove branch from 5f7b1c1 to 0f66d1b Compare February 10, 2024 00:49
@merceyz merceyz marked this pull request as ready for review February 10, 2024 00:49
@merceyz merceyz marked this pull request as draft February 10, 2024 00:55
@merceyz merceyz force-pushed the merceyz/fix/remove-unsafe-remove branch from 0f66d1b to a8f8736 Compare February 10, 2024 01:03
@merceyz merceyz changed the title fix!: remove unsafe remove of install folder fix: remove unsafe remove of install folder Feb 10, 2024
@merceyz merceyz marked this pull request as ready for review February 10, 2024 01:19
sources/corepackUtils.ts Outdated Show resolved Hide resolved
Comment on lines +26 to +31
export function getInstallFolder() {
return join(
getCorepackHomeFolder(),
`v${INSTALL_FOLDER_VERSION}`,
);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This is going to invalidate all cache from existing installation, without removing it from disk, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct, we should add some clean-up in a follow-up PR.

@merceyz merceyz merged commit 65880ca into nodejs:main Feb 11, 2024
10 checks passed
@merceyz merceyz deleted the merceyz/fix/remove-unsafe-remove branch February 11, 2024 20:13
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