microsoft / DevHomeAzureExtension

Dev Home Azure Extension
MIT License
68 stars 15 forks source link

Repository fails to clone on Arm64 based Windows devices. #96

Closed snickler closed 5 months ago

snickler commented 5 months ago

Dev Home version

0.901.374.0

Dev Home Azure Extension version

0.400.374.0

Windows build number

10.0.23615.0

Other software

No response

Steps to reproduce the bug

Expected result

Successful clone of chosen repository to the drive/folder selected.

Actual result

"Couldn't clone {repo} because Something happened when cloning the repo" image

Looking at the Azure Extension Logs:

[2024/01/15 09:55:38.1141][AzureExtension] INFO: Logging to C:\Users\jerem\AppData\Local\Packages\Microsoft.Windows.DevHomeAzureExtension_8wekyb3d8bbwe\TempState\AzureExtension\AzureExtension_20240115-165538.log
[2024/01/15 09:55:38.1141][DevHomeRepository] ERROR: Could not clone the repository
System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
 ---> System.DllNotFoundException: Unable to load DLL 'git2-106a5f2' or one of its dependencies: The specified module could not be found. (0x8007007E)
   at LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
   at LibGit2Sharp.Core.NativeMethods.InitializeNativeLibrary()
   at LibGit2Sharp.Core.NativeMethods..cctor()
   --- End of inner exception stack trace ---
   at LibGit2Sharp.Core.NativeMethods.git_clone(git_repository*& repo, String origin_url, FilePath workdir_path, GitCloneOptions& opts)
   at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts)
   at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options)
   at DevHomeAzureExtension.Providers.RepositoryProvider.<>c__DisplayClass15_0.<CloneRepositoryAsync>b__1()

Included System Information

No response