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.
Currently when the
-AllVersions
option is used with thefind-package
cmdlet the provider returns the channel versions defined in the index, but if versions are defined in theversions
portion of the index they are not returned.For example, with an index of
find-package
will return 3 results instead of 4