docker run --rm -it mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
Run pwsh and install PowerGit
Install-Module PowerGit
After that calling to Get-GitRepository command throws an exception related to native binaries libgit2
Get-GitRepository : {Write-Error: Exception calling ".ctor" with "1" argument(s): "The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.", Exception calling ".ctor" with "1" argument(s): "The
type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception."
At /root/.local/share/powershell/Modules/PowerGit/0.6.1/Functions/Find-GitRepository.ps1:73 char:8
Probably this is not actually your fail, I think this is because lack of support of alpine linux distro in libgit2.
I am not sure what docker image distros are supported.
Good to update docs which versions are supported and which is not supported.
Or, probably I am missing something.
Way to reproduce:
pwsh
and install PowerGitGet-GitRepository
command throws an exception related to native binaries libgit2Probably this is not actually your fail, I think this is because lack of support of alpine linux distro in libgit2. I am not sure what docker image distros are supported. Good to update docs which versions are supported and which is not supported. Or, probably I am missing something.