build.ps doesn't handle unmapped UNC-paths #494
Labels
enhancement
The issue is an enhancement request.
help wanted
The issue is up for grabs for anyone in the community.
Problem description
When trying to build a module stored on a share using a pure UNC-path (i.e. \server\share\mymodule not mapped to a drive letter), the build fails with the error message
Verbose logs
How to reproduce
Expected behavior
The
Sampler
should check that the path is not an UNC-path as some cmdlets doesn't work with UNC-paths and output an error referring to UNC-paths not being supported for source files.Current behavior
The build fails, but it's not apparent it is because of the path being an UNC-path and not a drive letter path.
Suggested solution
I'm assuming that the param
RelativeTo
is the one that needs to be checked in the functionGet-SamplerAbsolutePath
.Operating system the target node is running
PowerShell version and build the target node is running
Module version used
The text was updated successfully, but these errors were encountered: