Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package fails to download from GitHub Enterprise Server. #598

Closed
jbvirt opened this issue Oct 27, 2023 · 1 comment · Fixed by #602
Closed

Package fails to download from GitHub Enterprise Server. #598

jbvirt opened this issue Oct 27, 2023 · 1 comment · Fixed by #602

Comments

@jbvirt
Copy link

jbvirt commented Oct 27, 2023

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
@JoC0de
Copy link
Collaborator

JoC0de commented Oct 29, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants