Closed Josverl closed 4 years ago
@Josverl It looks like you're hitting the same bug as #18.
Creating .cmd shim from D:\_work\1\s\node_modules\.bin\pwsh.cmd to C:\Users\VssAdministrator\.npm-pwsh\powershell-6.1.0-win32-x64\pwsh.exe (via D:\_work\1\s\node_modules\pwsh\bin\pwsh)...
The .cmd
shims are created by a third-party library. The library has a bug where it can't create shims that delegate to a different drive letter. There's an alternative library we can use which may fix the issue. I posted complete details in the thread for #18.
I believe the fix is pretty simple. I don't have time to write it, but if someone else submits a pull-request, I'll make sure to merge and publish it.
Replaced by #24, which is meant to more precisely describe the necessary fix. We will wait for a pull request.
I really like this module, but I run into an issue where I least expected it
a package that :
package.zip
the package installs and the script has been developped / tested on windows , linux and mac if the package is installed (for testing) by an azure pipeline then :
I only can repro the failure in this setup on the windows build hosts. (all build host already have pwsh preloaded ,depedency is to cater for other machines)
I assume that something fails when trying to create the symlink for
node_modules/.bin/pwsh
but can't really tell.build steps : do the same on 3 platforms :
the build logs ( win and linux) are attached Windows core - failing log_28_61.zip
and for comparison : linux : not failing log_22_61.zip
workaround the only known workaround i have found is not to include pwsh as a dependency