Hello Everyone, I'm new to chocolatey. Chocolatey is not using skip tokens for FindPackagesById if we have many versions. The issue is with only the virtual repository. It's working as expected for the Remote repository.
Scenario 1: Package(git) has 70+ versions, repository type is remote.
choco install git -y
fiddler logs:
/api/nuget/choco
/api/nuget/choco/$metadata
/api/nuget/choco/Packages()?$filter=(tolower(Id)%20eq%20'git')%20and%20IsLatestVersion
/api/nuget/choco/FindPackagesById()?id='git.install'
Scenario 2: Package(git) has 70+ versions, repository type is virtual.
choco install git -y
fiddler logs:
/api/nuget/chocolatey
/api/nuget/chocolatey/Packages(Id='git',Version='2.30.0.2')
/api/nuget/chocolatey/$metadata
/api/nuget/chocolatey/FindPackagesById()?id='git.install'
/api/nuget/chocolatey/FindPackagesById?id='git.install'&$skiptoken='git.install','2.15.0'
/api/nuget/chocolatey/FindPackagesById?id='git.install'&$skiptoken='git.install','2.5.2'
/api/nuget/chocolatey/Download/git/2.30.0.2
choco source add
command to add the repository, using --user
and --password
arguments to specify the login; then Chocolatey Gui will pick up that source because it uses the same config that choco.exe
uses. The other option is to go into the Chocolatey GUI settings, go over to the sources tab, and set the username and password for the repository source that needs it.