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

Import error fix - test for existence first - #5056 #5068

merged 1 commit into from Feb 10, 2019


None yet
1 participant
Copy link

potatoqualitee commented Feb 10, 2019

partial fix, we still have a lot of other import errors that revolve around the copy-item

opy-Item : The process cannot access the file 'C:\github\dbatools\bin\dbatools.dll' because it is being used by another process.
At line:93 char:25
+ ...             Copy-Item -Path $dll -Destination $script:DllRoot -Force  ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Copy-Item], IOException
    + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.CopyItemCommand

[105.01 ms] C:\github\dbatools> findshit 'Copy-Item -Path \$dll -Destination'

bin\library.ps1:93:                        Copy-Item -Path $dll -Destination $script:DllRoot -Force -ErrorAction Stop

/cc @FriedrichWeinmann

@potatoqualitee potatoqualitee merged commit 626d36c into development Feb 10, 2019

2 checks passed

continuous-integration/appveyor/branch AppVeyor build succeeded
continuous-integration/appveyor/pr AppVeyor build succeeded

@potatoqualitee potatoqualitee deleted the noerror branch Feb 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment