Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-17889

Nuget virtual repository against chocolatey might not return the latest version

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.5.1
    • Fix Version/s: 6.12.0
    • Component/s: Chocolatey, NuGet
    • Labels:

      Description

      Steps to reproduce:

      1. Create a remote repository against chocolatey.
      2. Put the remote repository inside a virtual Nuget repository.
      3. Configure the choco client to work against the virtual repository.
      4. Install a package, for example resharper-clt.portable

      Notice that Artifactory installed version 2017.2.0, while 2018.2.3 is actually the latest:

      PS C:\Windows\system32> choco install resharper-clt.portable
      Chocolatey v0.10.11
      Installing the following packages:
      resharper-clt.portable
      By installing you accept licenses for the packages.
      Progress: Downloading resharper-clt.portable 2017.2.0... 100%

       

      When trying to upgrade it to the latest version:

      PS C:\Windows\system32> choco upgrade resharper-clt.portable --version 2018.2.3
      Chocolatey v0.10.11
      Upgrading the following packages:
      resharper-clt.portable
      By upgrading you accept licenses for the packages.

       

      The workaround for this issue is to work against the remote repository directly

      This is the log when working on remote repository directly:

      PS C:\Windows\system32> choco install resharper-clt.portable --force
      Chocolatey v0.10.11
      Installing the following packages:
      resharper-clt.portable
      By installing you accept licenses for the packages.
      resharper-clt.portable v2018.2.3 already installed. Forcing reinstall of version '2018.2.3'.
       Please use upgrade if you meant to upgrade to a new version.
      Progress: Downloading resharper-clt.portable 2018.2.3... 100%

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tamirh Tamir Hadad
              Reporter:
              shaibz Shai Ben-Zvi
              Votes:
              9 Vote for this issue
              Watchers:
              17 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: