Replace Windows symlinks with volta run
scripts
#1755
+418
−69
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.
Closes #1397
Info
volta run <package>
.Changes
junction
to create NTFS junctions instead of directory symlinks (this part is directly copied from No more symlinks on Windows #1552)shim
module to have different implementations ofcreate
for Unix and Windows..cmd
script that callsvolta run
for the shim. It also continues to create a custom Git Bash script, though that script is updated to now callvolta run
directly, instead of calling the existing shim viacmd.exe
v4
layout since the shim file on Windows is now<binary>.cmd
instead of<binary>.exe
.v4
that removes and regenerates the shims, making sure that the old symlinks are removed. The migration also updates any existing directory symlinks to use junctions as well.Tested
Notes