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

inconsistent behavior of -AllowPrereleaseVersions #63

Open
dejoost opened this issue Nov 22, 2019 · 0 comments
Open

inconsistent behavior of -AllowPrereleaseVersions #63

dejoost opened this issue Nov 22, 2019 · 0 comments

Comments

@dejoost
Copy link

dejoost commented Nov 22, 2019

tested on both mac and win machines.

module versions:

Script     1.4.5      PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}
Script     2.2.1      PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}

providers:

NuGet                    3.0.0.1          Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOnTag, Contains, AllowPrereleaseVersions, ConfigFile, SkipValidate
PowerShellGet            2.2.1.0          PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherCheck, InstallUpdate, NoPathUpdate, AllowPrereleaseVersions, Filter, Tag, Includes, DscResource, RoleCa…

Current behaviour:

  • When running from a local folder:
PS /Users/joo> Find-Package datadiff -source .
Name                           Version          Source           Summary
----                           -------          ------           -------
Datadiff             3.3.0-pre.623    /Users/joo       Base datadiff project

PS /Users/joo> Find-Package stylelabs.datadiff -source . -AllowPrereleaseVersions
Name                           Version          Source           Summary
----                           -------          ------           -------
Stylelabs.Datadiff             3.3.0-pre.623    /Users/joo       Base datadiff project

PS /Users/joo> Find-Package datadiff -source . -AllVersions
Name                           Version          Source           Summary
----                           -------          ------           -------
Datadiff             3.3.0-pre.623    /Users/joo       Base datadiff project
Datadiff             3.2.200          /Users/joo       Base datadiff project
Datadiff             3.2.0-rc.3       /Users/joo       Base datadiff project
  • when working with a remote v3 feed
PS /Users/joo> Find-Package datadiff -source https://blah.blob.core.windows.net/packages/index.json -AllowPrereleaseVersions
Name                           Version          Source           Summary
----                           -------          ------           -------
Datadiff             3.2.200          sleet            Base datadiff project

PS /Users/joo> Find-Package datadiff -source https://blah.blob.core.windows.net/packages/index.json
Name                           Version          Source           Summary
----                           -------          ------           -------
Datadiff             3.2.200          sleet            Base datadiff project

PS /Users/joo> Find-Package datadiff -source https://blah.blob.core.windows.net/packages/index.json -AllVersions -AllowPrereleaseVersions
Name                           Version          Source           Summary
----                           -------          ------           -------
Datadiff             3.3.0-pre.623    sleet            Base datadiff project
Datadiff             3.2.200          sleet            Base datadiff project
Datadiff             3.2.0-rc.3       sleet            Base datadiff project

Expected:

aligned behaviour for both local folders and remote v3 feeds

on local folders the Find-Package without "-AllowPrereleaseVersions" flag should return the latest release, not latest pre-release
on remote v3 feeds Find-Package with "-AllowPrereleaseVersions" flag should return the latest pre-release, not latest release

Note:
Also the Find-Package with "-AllVersion" flag and without "-AllowPrereleaseVersions" flag for local feeds is showing the pre-releases.

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