GlitchEnzo / NuGetForUnity

A NuGet Package Manager for Unity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Package fails to download from GitHub Enterprise Server.

jbvirt opened this issue · comments

Description

We are trying to use NuGet for unity with our GitHub Enterprise server. We can add out GHE server as a source and preview the packages, but trying to download fails.

image

Error:

Could not find ****.****.Persistence 1.0.0.2 or greater.
UnityEngine.Debug:LogErrorFormat (string,object[])
NugetForUnity.NugetPackageInstaller:InstallIdentifier (NugetForUnity.Models.INugetPackageIdentifier,bool,bool) (at ./Library/PackageCache/com.github-glitchenzo.nugetforunity@5a1e296804/Editor/NugetPackageInstaller.cs:39)
NugetForUnity.Ui.NugetWindow:DrawPackage (NugetForUnity.Models.INugetPackage,UnityEngine.GUIStyle,UnityEngine.GUIStyle,bool) (at ./Library/PackageCache/com.github-glitchenzo.nugetforunity@5a1e296804/Editor/Ui/NugetWindow.cs:1095)
NugetForUnity.Ui.NugetWindow:DrawPackages (System.Collections.Generic.IEnumerable`1<NugetForUnity.Models.INugetPackage>,bool) (at ./Library/PackageCache/com.github-glitchenzo.nugetforunity@5a1e296804/Editor/Ui/NugetWindow.cs:677)
NugetForUnity.Ui.NugetWindow:DrawOnline () (at ./Library/PackageCache/com.github-glitchenzo.nugetforunity@5a1e296804/Editor/Ui/NugetWindow.cs:642)
NugetForUnity.Ui.NugetWindow:OnGUI () (at ./Library/PackageCache/com.github-glitchenzo.nugetforunity@5a1e296804/Editor/Ui/NugetWindow.cs:293)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
  • NuGet Package: A custom one hosted on GitHub Enterprise Server 3.8.2
  • NuGetForUnity Version: The latest git hash: 5a1e296
  • Unity Version: 2022.3.9f1
  • Operating System: Windows

Ok seems like GitHub Packages also don't support the packageid:<NuGetPackageId> search query.
Azure seems to have the same issue see #589
We need to implement a workaround using different APIs.