Skip to content

tsparser: fall back to junction points on windows#1401

Merged
eandre merged 1 commit into
encoredev:mainfrom
eandre:tsparser-junction-points
Sep 16, 2024
Merged

tsparser: fall back to junction points on windows#1401
eandre merged 1 commit into
encoredev:mainfrom
eandre:tsparser-junction-points

Conversation

@eandre

@eandre eandre commented Sep 16, 2024

Copy link
Copy Markdown
Member

Windows requires Developer Mode to be enabled to use
symlinks without admin permissions. This isn't always enabled,
so fall back to using junction points if symlink creation fails.

This is for example what rustup does already.
See rust-lang/rustup#3687 for example.

@eandre
eandre requested a review from fredr September 16, 2024 13:33
@encore-cla

encore-cla Bot commented Sep 16, 2024

Copy link
Copy Markdown

All committers have signed the CLA.

fredr
fredr previously approved these changes Sep 16, 2024

@fredr fredr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

Comment thread tsparser/src/builder/package_mgmt.rs Outdated
Windows requires Developer Mode to be enabled to use
symlinks without admin permissions. This isn't always enabled,
so fall back to using junction points if symlink creation fails.

This is for example what rustup does already.
See rust-lang/rustup#3687 for example.
@eandre
eandre enabled auto-merge (rebase) September 16, 2024 14:36
@eandre
eandre disabled auto-merge September 16, 2024 14:42
@eandre
eandre merged commit 54a8940 into encoredev:main Sep 16, 2024
@eandre
eandre deleted the tsparser-junction-points branch September 16, 2024 14:42
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