You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following up from cake-contrib/Cake.DotNetTool.Module#20, I discovered the unexpected and inconsistent behavior that a tool with one name in the PATH was preferred over the tool with another name in the tool registry or tools directory.
Specifically, in this case, GitVersion.exe is already installed into the PATH by Chocolatey for the Windows virtual environment used by GitHub Actions. During the Cake build, a different version is specified to be installed into the Cake tools subdirectory; it should have been used instead but was not, since the current tool resolution strategy does not take into account multiple tool executable names for each tool resolution source, and so is effectively depth first.
The text was updated successfully, but these errors were encountered:
Following up from cake-contrib/Cake.DotNetTool.Module#20, I discovered the unexpected and inconsistent behavior that a tool with one name in the
PATH
was preferred over the tool with another name in the tool registry or tools directory.Specifically, in this case,
GitVersion.exe
is already installed into thePATH
by Chocolatey for the Windows virtual environment used by GitHub Actions. During the Cake build, a different version is specified to be installed into the Cake tools subdirectory; it should have been used instead but was not, since the current tool resolution strategy does not take into account multiple tool executable names for each tool resolution source, and so is effectively depth first.The text was updated successfully, but these errors were encountered: