Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SqlServerDsc.Common: Invoke-InstallationMediaCopy fails when run in PowerShell 7 #1530

Closed
johlju opened this issue May 7, 2020 · 0 comments · Fixed by #1524
Closed

SqlServerDsc.Common: Invoke-InstallationMediaCopy fails when run in PowerShell 7 #1530

johlju opened this issue May 7, 2020 · 0 comments · Fixed by #1524
Labels
bug The issue is a bug.

Comments

@johlju
Copy link
Member

johlju commented May 7, 2020

There is a breaking change in the cmdlet Split-Path -Leaf when used together with share paths in PowerShell 7.

The snippet:

Split-Path -Path '\\server\share' -Leaf

returns $null in Windows Powershell, while it in PowerShell 7 returns the string 'share'.

@johlju johlju added bug The issue is a bug. in progress The issue is being actively worked on by someone. labels May 7, 2020
@johlju johlju removed the in progress The issue is being actively worked on by someone. label May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant