Windows OS command fails when referenced through its symbolic link #1177
Labels
Area: Git
Area: Scripting and command line
awaiting-deployment
Code complete; awaiting deployment and/or deployment in progress
investigate
Collect additional information, like space on disk, other tool incompatibilities etc.
OS: Windows
Describe the bug
Attempting to run a Windows
.cmd
file through a relative symbolic link appearing within a git repository produces unexpected behavior - that may or may not immediately fail. The relative link refers to a file contained in the repo. After installing this git repo into the Windows virtual environment viaactions/checkout@v2
, the symbolic link is converted into an actual file whose content reflects the link reference, not the content of the file targeted by the link. Therefore, attempting to run the.cmd
file executes the link reference instead of dereferencing it to execute the content of the actual file. Furthermore, the command arguments specified on the call aren't forwarded by the link reference.Area for Triage: git
Question, Bug, or Feature?: Bug
Virtual environments affected
Expected behavior
Given a git repository containing a link file that's copied into a Windows virtual environment via
actions/checkout@v2
, executing the commanddir /al
via a github actionsrun:
yaml keyword should display the file as a<SYMLINK>
.Actual behavior
The link file is converted into a basic file and executing
dir /al
within a git repository directory displays the file as just a file.A description with steps to reproduce the issue. If your have a public example or repo to share,
please provide the link.
The output below was generated by this workflow:
The symlink behavior above seems related to this Docker for Windows #5778 issue.
The text was updated successfully, but these errors were encountered: