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

Trying to install a prerelease package without --pre in presence of a release package installs the release package #750

Closed
Apteryx0 opened this issue May 26, 2016 · 1 comment

Comments

@Apteryx0
Copy link

When I create a prerelease and release package in the same directory and then try to install the prerelease package without the --pre option, chocolatey will install the release package instead. Take careful note of the versions below....

C:\Users\RussellMora\Dropbox (aboutGolf)\Chocolatey\aG Sim Setup\agsimsetup\src\main>dir
 Volume in drive C is Windows8_OS
 Volume Serial Number is 08E6-FB9D

 Directory of C:\Users\RussellMora\Dropbox (aboutGolf)\Chocolatey\aG Sim Setup\agsimsetup\src\main

05/26/2016  05:52 PM    <DIR>          .
05/26/2016  05:52 PM    <DIR>          ..
05/24/2016  03:51 PM             1,923 agsimsetup.nuspec
03/31/2016  03:55 PM    <DIR>          tools
               1 File(s)          1,923 bytes
               3 Dir(s)  162,836,271,104 bytes free

C:\Users\RussellMora\Dropbox (aboutGolf)\Chocolatey\aG Sim Setup\agsimsetup\src\main>choco pack --version 2.2.1.0-b40
Attempting to build package from 'agsimsetup.nuspec'.
Successfully created package 'agsimsetup.2.2.1.0-b40.nupkg'

C:\Users\RussellMora\Dropbox (aboutGolf)\Chocolatey\aG Sim Setup\agsimsetup\src\main>choco pack
Attempting to build package from 'agsimsetup.nuspec'.
Successfully created package 'agsimsetup.2.2.1.0.nupkg'

C:\Users\RussellMora\Dropbox (aboutGolf)\Chocolatey\aG Sim Setup\agsimsetup\src\main>choco install agsimsetup.2.2.1.0-b40.nupkg
Installing the following packages:
agsimsetup.2.2.1.0-b40.nupkg
By installing you accept licenses for the packages.

agsimsetup v2.2.1.0         <<<<< WRONG VERSION HERE
The package agsimsetup wants to run 'chocolateyinstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider setting
 'allowGlobalConfirmation'. Run 'choco feature -h' for more details.
Do you want to run the script?
 1) yes
 2) no
 3) print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants