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

There is a nuget package that cannot retrieve information #2436

Closed
1 of 13 tasks
hanagasira opened this issue Mar 2, 2025 · 1 comment · Fixed by #2443
Closed
1 of 13 tasks

There is a nuget package that cannot retrieve information #2436

hanagasira opened this issue Mar 2, 2025 · 1 comment · Fixed by #2443
Labels

Comments

@hanagasira
Copy link
Contributor

What seems to be the problem?

nuget {
    "python:3.13.2",
}

If you apply the python package from nuget.
error message appears.

[error] ** Error: Failed to understand NuGet API response (got a page with no items for package 'python')

What did you expect to happen?

The path to the header file and lib file to python passes without error

What have you tried so far?

How can we reproduce this?

  • Visual Studio 2022 (vs2022)
  • Visual Studio 2019 (vs2019)
  • Visual Studio 2017 (vs2017)
  • Visual Studio 2015 (vs2015)
  • Visual Studio 2012 (vs2012)
  • Visual Studio 2010 (vs2010)
  • Visual Studio 2008 (vs2008)
  • Visual Studio 2005 (vs2005)
  • GNU Makefile (gmake)
  • GNU Makefile Legacy (gmakelegacy)
  • XCode (xcode)
  • Codelite
  • Other (Please list below)

What version of Premake are you using?

5.0-beta4

Anything else we should know?

In premake, nuget package information is stored in the
The items element in the items element is used for the nuget package.

For example, the following part of the nuget package information for boost is used

{
  "@id": "https://api.nuget.org/v3/registration5-semver1/boost/index.json",
  "@type": [
    "catalog:CatalogRoot",
    "PackageRegistration",
    "catalog:Permalink"
  ],
  "commitId": "062f8b06-2fd3-4280-ae11-e3dcac888611",
  "commitTimeStamp": "2024-12-19T02:52:29.427943+00:00",
  "count": 1,
  "items": [
    {
      "@id": "https://api.nuget.org/v3/registration5-semver1/boost/index.json#page/1.54.0-unofficial/1.87.0",
      "@type": "catalog:CatalogPage",
      "commitId": "062f8b06-2fd3-4280-ae11-e3dcac888611",
      "commitTimeStamp": "2024-12-19T02:52:29.427943+00:00",
      "count": 52,
      "items": [
        {
          "@id": "https://api.nuget.org/v3/registration5-semver1/boost/1.54.0-unofficial.json",
          "@type": "Package",

But in python, the nuget package information is as follows,
There is no items element in the items element.

{
  "@id": "https://api.nuget.org/v3/registration5-semver1/python/index.json",
  "@type": [
    "catalog:CatalogRoot",
    "PackageRegistration",
    "catalog:Permalink"
  ],
  "commitId": "11c8ce60-e53a-445d-8f73-fb6eb25992bd",
  "commitTimeStamp": "2025-02-11T19:23:34.416317+00:00",
  "count": 4,
  "items": [
    {
      "@id": "https://api.nuget.org/v3/registration5-semver1/python/page/3.5.2/3.8.1-c1.json",
      "@type": "catalog:CatalogPage",
      "commitId": "c621f18c-153b-4530-804d-ad751d23dce5",
      "commitTimeStamp": "2022-02-03T19:59:51.3244176+00:00",
      "count": 64,
      "lower": "3.5.2",
      "upper": "3.8.1-c1"
    },
@hanagasira hanagasira added the bug label Mar 2, 2025
@nickclark2016
Copy link
Member

Raised internally, checking to see if anyone has the NuGet knowledge and time to check this out. If not, I'll try to take a look relatively soon. I just don't have enough NuGet knowledge currently to get a fix rapidly.

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

Successfully merging a pull request may close this issue.

2 participants