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

Versions defined outside of channels are not returned in find-package -allversions #46

Open
carlfischer1 opened this issue Jul 17, 2018 · 0 comments

Comments

@carlfischer1
Copy link

Currently when the -AllVersions option is used with the find-package cmdlet the provider returns the channel versions defined in the index, but if versions are defined in the versions portion of the index they are not returned.

For example, with an index of

{
    "channels":  {
                     "cs":  {
                                "alias":  "17.06"
                            },
                     "test":  {
                                  "version":  "18.03.1-ee-2"
                              },
                     "17.06":  {
                                   "version":  "17.06.2-ee-15"
                               },
                     "18.03":  {
                                   "version":  "18.03.1-ee-2"
                               }
                 },
    "versions":  {
                     "17.06.2-ee-14":  {
                                           "date":  "2018-06-28T15:42:58",
                                           "url":  "https://dockermsft.blob.core.windows.net/dockercontainer/docker-17-06-2-ee-14.zip",
                                           "size":  "16340562",
                                           "notes":  "Contains Docker EE for use with Windows Server.",
                                           "sha256":  "3619D5FFD9CCD179A37C910404841AFA81A2DAD26B00735AB15C69E6D682EF63"
                                       },
                     "18.03.1-ee-1":  {
                                          "date":  "2018-06-28T18:37:37",
                                          "url":  "https://dockermsft.blob.core.windows.net/dockercontainer/docker-18-03-1-ee-1.zip",
                                          "size":  "21787610",
                                          "notes":  "Contains Docker EE for use with Windows Server.",
                                          "sha256":  "EBECAD33DF142FB63B76391CFBD9C9C4FB17D5AEEF5CA126236EBADDAFE86628"
                                      },
                     "17.06.2-ee-15":  {
                                           "date":  "2018-07-16T18:10:39",
                                           "url":  "https://dockermsft.blob.core.windows.net/dockercontainer/docker-17-06-2-ee-15.zip",
                                           "size":  "16340831",
                                           "notes":  "Contains Docker EE for use with Windows Server.",
                                           "sha256":  "75A50974A47434958AD4157FFBF8448B4DD22317376B6291AE6BA7B37F584717"
                                       },
                     "18.03.1-ee-2":  {
                                          "date":  "2018-07-16T18:10:49",
                                          "url":  "https://dockermsft.blob.core.windows.net/dockercontainer/docker-18-03-1-ee-2.zip",
                                          "size":  "21788578",
                                          "notes":  "Contains Docker EE for use with Windows Server.",
                                          "sha256":  "24C9E716D5E86421B89040140E6B03292840E0AE901D039BC5990C706B74557A"
                                      }
                 }
}

find-package will return 3 results instead of 4

PS C:\> find-package docker -provider dockermsftprovider -allversions

Name                           Version          Source           Summary
----                           -------          ------           -------
Docker                         17.06.2-ee-15    DockerDefault    Contains Docker EE for use with Windows Server.
Docker                         18.03.1-ee-2     DockerDefault    Contains Docker EE for use with Windows Server.
Docker                         18.03.1-ee-2     DockerDefault    Contains Docker EE for use with Windows Server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant