Skip to content

Server will not find/list packages in packages directory. #13

@mvarga6

Description

@mvarga6

I've configured the server with

{
  "server": {
    "url": "http://*:4356"
  },
  "nuget": {
    "packages": "/home/mike/.nuget_local",
    "makeReadonly": true
  },
  "cache": {
    "type": "NoCacheLoadAll",
    "duration": -1
  }
}

which claims to read the packages on startup,

Cache strategy: NoCacheLoadAll
Processing packages...
Processing packages done

and I have added a single nupkg file to source directory,

>>> ls /home/mike/.nuget_local/
MyTestPackage.1.0.0.nupkg

and added the feed to nuget

Registered Sources:

  1.  https://www.nuget.org/api/v2/ [Enabled]
      https://www.nuget.org/api/v2/
  2.  localv2 [Enabled]
      http://localhost:4356/v2/

but I can't get the server to actually serve this file.

>>> nuget list -Source localv2
No packages found.

Server log for that request:

---
ContentLength:
ContentType:
Method: GET
Path: /v2/
PathBase:
Protocol: HTTP/1.0
QueryString:
---


---
ContentLength:
ContentType:
Method: GET
Path: /v2/$metadata
PathBase:
Protocol: HTTP/1.0
QueryString:
---


---
ContentLength:
ContentType:
Method: GET
Path: /v2/Packages
PathBase:
Protocol: HTTP/1.1
QueryString:
---

What am I doing wrong? Seems like I've followed everything to a T, and this just isn't working as expected. OR I'm completely missing something. @TanukiSharp any idea why this is happening?

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions