PowershellFrameworkCollective / PSModuleDevelopment

Provides tools that help with module development
MIT License
125 stars 25 forks source link

NUPKG Install error "Get-LastResult,Was-Bound" #140

Closed Callidus2000 closed 3 years ago

Callidus2000 commented 3 years ago

I'm using the module template, works wonderful with the exception of one of my module-development projects. The use of "vsts-build.ps1" creates a nupgk archive. If I try to install the generated module I receive the error:

Install Error: MyModule
The following commands are already available on this system:'Get-LastResult,Was-Bound'. This module 'Dracoon' may override the existing commands. If you still want to install this module 'Dracoon', use -AllowClobber parameter.

Get-LastResult,Was-Bound are functions from PSFramework.

Any idea how/where this information is wrongly detected? My module does not contain those functions.

FriedrichWeinmann commented 3 years ago

unfortunately, I have no idea where that might happen - never had that happen to me and that should not happen by accident!. Can you share the code/link to the project?

Callidus2000 commented 3 years ago

Sharing the real internal module isn't allowed. Therefor I stripped the content and created a dummy module which still creates the corresponding error. https://github.com/Callidus2000/NuPKGissue140

Reproduce:

build\vsts-build.ps1 -Repository "PSMDStaging" -ApiKey x
Install-Module Murks
FriedrichWeinmann commented 3 years ago

Thanks for sharing that, can definitely reproduce that in almost any permutation imaginable. Interestingly enough, it works in older versions just fine (tried on 1.0.0.1 that comes preinstalled on windows). I drilled as far down as I was able to make time for it for now. I will try to find the culprit involved in this packagemanagement side of things. Sarcasm might get involved ... ;-)

FriedrichWeinmann commented 3 years ago

Ok, had that discussion as promised. Simply put, we're stuck with this unless we go back to an older version or the v3 starts working correctly. I don't see that happening anytime soon, alas, sorry :(

Callidus2000 commented 3 years ago

Translated for me: Nasty Race Condition and a bug in PowershellGet, nothing what can be fixed. Issue may get closed.