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.
choco install PACKAGES -s .
. 2 out of the 3 work fine when invoked using the win_chocolatey module as well. But one is not working.
2021-01-24 23:05:05,944 6084 [INFO ] - Installing orthocad...
2021-01-24 23:05:05,990 6084 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0' -workingDirectory 'C:\tmp\chocolatey\orthocad\1.0' -statements ' ' -exeToRun 'C:\tmp\chocolatey\orthocad\1.0\iTero_Online_Setup_5.9.1.20.exe'
2021-01-24 23:05:05,990 6084 [DEBUG] - Unable to use current location for Working Directory. Using Cache Location instead.
2021-01-24 23:05:06,005 6084 [DEBUG] - Test-ProcessAdminRights: returning True
2021-01-24 23:05:06,020 6084 [DEBUG] - Elevating permissions and running ["C:\tmp\chocolatey\orthocad\1.0\iTero_Online_Setup_5.9.1.20.exe" ]. This may take a while, depending on the statements.
Elevating permissions and running
. So that at least rules out AHK. Not yet sure why it can't move any further. Other packages install and work just fine with Ansible/chocolatey...