PowerShell / Modules

MIT License
112 stars 25 forks source link

[SecretsManagement] macOs Catalina - Unable to load shared library #28

Closed TheBigBear closed 4 years ago

TheBigBear commented 4 years ago

Steps to reproduce

Install-Module -Name Microsoft.PowerShell.SecretsManagement -AllowPrerelease
Import-Module Microsoft.PowerShell.SecretsManagement
Get-SecretsVault
Name              ModuleName ImplementingType
----              ---------- ----------------
BuiltInLocalVault            
Add-Secret -Name MyTestSecret -Secret "This is my Secret"
> `Add-Secret: Unable to load shared library '/Users/user/.local/share/powershell/Modules/Microsoft.PowerShell.SecretsManagement/0.1.0/osx-x64/Advapi32.dll.dylib' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(/Users/user/.local/share/powershell/Modules/Microsoft.PowerShell.SecretsManagement/0.1.0/osx-x64/Advapi32.dll.dylib, 1): image not found`

Expected behavior

It should add the new first secret to the default built-in vault

Actual behavior

gives an error in red:
Add-Secret: Unable to load shared library '/Users/user/.local/share/powershell/Modules/Microsoft.PowerShell.SecretsManagement/0.1.0/osx-x64/Advapi32.dll.dylib' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(/Users/user/.local/share/powershell/Modules/Microsoft.PowerShell.SecretsManagement/0.1.0/osx-x64/Advapi32.dll.dylib, 1): image not found

Environment data

Module version:

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.0.0-rc.2
PSEdition                      Core
GitCommitId                    7.0.0-rc.2
OS                             Darwin 19.3.0 Darwin Kernel Version 19.3.0: Thu Jan  9 20:58:23 PST 2…
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
SydneyhSmith commented 4 years ago

@TheBigBear thanks for opening this issue, unfortunately this release of the module is Windows only... we do plan to support cross-plat in future releases so I will use this issue to track that work item

PaulHigin commented 4 years ago

Cross platform support is part of the development plan, so I don't think an issue is needed to track the work. I'll close this comment.