You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prerelease versions with hyphen are incorrectly handled #263
SemVer defines that prerelease identifiers MUST comprise only ASCII alphanumerics and hyphen [0-9A-Za-z-]. NuGet allows prerelease identifies that match following regular expression [a-z][0-9a-z-]*, see SemanticVersion.cs
Paket version 0.8.1.0
Parsing paket.dependencies
Resolving packages:
- fetching versions for Ninject
- exploring Ninject 3.2.3-unstable-003
Locked version resolutions written to ...\paket.lock
Downloading Ninject 3.2.3-unstable-003 to ...\NuGet\Cache\Ninject.3.2.3-unstable-003.nupkg
Ninject 3.2.3-unstable-003 unzipped to ..\packages\Ninject
paket's parsing of prerelease identifies do not honor the hyphens.
The problem is caused by using .Split '-' in SemVer.fs
By this the -001 part gets lost in the parsing process.
We should support such prerelease identifiers correctly.
If a version contains more data than we can recognize paket should fail.
I think we have to accept that nuget packages don't really use the full
semver spec and accept existing package versions. What do we have to fix
exactly?
On Oct 15, 2014 11:22 PM, "Max Malook" [email protected] wrote:
Paket version 0.8.1.0
Parsing paket.dependencies
Resolving packages:
fetching versions for Ninject
exploring Ninject 3.2.3-unstable-003
Locked version resolutions written to ...\paket.lock
Downloading Ninject 3.2.3-unstable-003 to ...\NuGet\Cache\Ninject.3.2.3-unstable-003.nupkg
Ninject 3.2.3-unstable-003 unzipped to ..\packages\Ninject
paket's parsing of prerelease identifies do not honor the hyphens.
The problem is caused by using .Split '-' in SemVer.fs
Yes, I'm with you, NuGet do not use the full SemVer spec, but its a full subset of it, so if we implement the full one we get NuGet for free. The question is only why should we bother as we can't get any of this extended versions from NuGet.
What do we have to fix exactly?
At least we have to support the scenario with hyphen in prerelease identifiers.
And as nice to have fail when someone defined a version in dependencies file we can not fully understand.
For the given example I would expect the current version of paket to fail, as prerelease identifiers with hyphen are not supported right now.
Ok. I think that sounds like a good idea. Do you want to look into this?
On Oct 15, 2014 11:37 PM, "Max Malook" [email protected] wrote:
Yes, I'm with you, NuGet do not use the full SemVer spec, but its a full
subset of it, so if we implement the full one we get NuGet for free. The
question is only why should we bother as we can't get any of this extended
versions from NuGet.
What do we have to fix exactly?
At least we have to support the scenario with hyphen in prerelease
identifiers.
And as nice to have fail when someone defined a version in dependencies
file we can not fully understand.
For the given example I would expect the current version of paket to
fail, as prerelease identifiers with hyphen are not supported right now.
—
Reply to this email directly or view it on GitHub #263 (comment).
@mexx be a bit careful: nuget v2.x not only doesn't implement the full pre-release spec, it actually implements bits of it wrong (lexical sorts when it should sort on numeric values).
So if you implement it "right" you'll be incompatible with NuGet.
Yes that's what I meant. We need to accept all the wrong versions.
But for new packages we should be careful.
On Oct 17, 2014 12:58 PM, "Michael Newton" [email protected] wrote:
Should this work when using update-from-nuget? I seem to have an issue with this
(note, the repo does contain those packages)
fetching versions for NuGet.CommandLine
exploring NuGet.CommandLine 2.8.3
Locked version resolutions written to c:\honourbound\trunk\Game\Source\Code\paket.lock
Something went wrong with the download of FileHelpers-Stable 2.9.9 - automatic retry with --force.
Something went wrong with the download of FSharp.Compiler.Service 0.0.58 - automatic retry with --force
.
Something went wrong with the download of FSharp.Core.3 0.0.2 - automatic retry with --force.
Downloading SimpleJson 0.30.0 to C:\Users\Andrea\AppData\Local\NuGet\Cache\SimpleJson.0.30.0.nupkg
Downloading FileHelpers-Stable 2.9.9 to C:\Users\Andrea\AppData\Local\NuGet\Cache\FileHelpers-Stable.2.
9.9.nupkg
Downloading FSharp.Compiler.Service 0.0.58 to C:\Users\Andrea\AppData\Local\NuGet\Cache\FSharp.Compiler
.Service.0.0.58.nupkg
Downloading FSharp.Core.3 0.0.2 to C:\Users\Andrea\AppData\Local\NuGet\Cache\FSharp.Core.3.0.0.2.nupkg
Something went wrong with the download of Discipline Oak 0.1.30 - automatic retry with --force.
Something went wrong with the download of Duality Editor 0.1.189 - automatic retry with --force.
Something went wrong with the download of Community Express (Steamworks) 0.1.0.0-CI00002 - automatic re
try with --force.
Something went wrong with the download of Duality Scripting Plugin 0.1.113-beta - automatic retry with
--force.
Something went wrong with the download of Spine runtime c# 0.1.16 - automatic retry with --force.
Paket failed with:
Could not retrieve data from https://www.myget.org/F/6416d9912a7c4d46bc983870fb440d25/Packages(Id='D
iscipline Oak',Version='0.1.30')
Message: The remote server returned an error: (404) Not Found.
@Andrea#288 was reverted, since it caused problems, so dashes in prerelease identifiers are still not handled correctly.
We anyway have to adjust the version scheme when NuGet v3 is there, that's what #289 is for.
Your problem seams to be unrelated to this issue, as far I can see.
@forki this issue should be reopened, since it's not fixed yet.
I'm slacking on this terribly, but there was a related fix in FAKE for the SemVer parser that corrected our handling of prerelease versions. That fix is here: fsprojects/FAKE#1325, specifically the SemVerHelper. I've been meaning to port those fixes over to Paket, in both the semver structures in the bootstrapper and Paket proper.
Activity
forki commentedon Oct 15, 2014
I think we have to accept that nuget packages don't really use the full
semver spec and accept existing package versions. What do we have to fix
exactly?
On Oct 15, 2014 11:22 PM, "Max Malook" [email protected] wrote:
mexx commentedon Oct 15, 2014
Yes, I'm with you, NuGet do not use the full SemVer spec, but its a full subset of it, so if we implement the full one we get NuGet for free. The question is only why should we bother as we can't get any of this extended versions from NuGet.
At least we have to support the scenario with hyphen in prerelease identifiers.
And as nice to have fail when someone defined a version in dependencies file we can not fully understand.
For the given example I would expect the current version of
paketto fail, as prerelease identifiers with hyphen are not supported right now.forki commentedon Oct 16, 2014
Ok. I think that sounds like a good idea. Do you want to look into this?
On Oct 15, 2014 11:37 PM, "Max Malook" [email protected] wrote:
mexx commentedon Oct 16, 2014
Maybe, after this weekend I think. You know what I mean ;)
mavnn commentedon Oct 17, 2014
@mexx be a bit careful: nuget v2.x not only doesn't implement the full pre-release spec, it actually implements bits of it wrong (lexical sorts when it should sort on numeric values).
So if you implement it "right" you'll be incompatible with NuGet.
forki commentedon Oct 17, 2014
Yes that's what I meant. We need to accept all the wrong versions.
But for new packages we should be careful.
On Oct 17, 2014 12:58 PM, "Michael Newton" [email protected] wrote:
support dashes in pre releases
mexx commentedon Oct 22, 2014
I've provided the fix for the current problem, but there should be a general decision about how to handle versions.
Andrea commentedon Nov 22, 2014
Should this work when using update-from-nuget? I seem to have an issue with this
(note, the repo does contain those packages)
Locked version resolutions written to c:\honourbound\trunk\Game\Source\Code\paket.lock
Something went wrong with the download of FileHelpers-Stable 2.9.9 - automatic retry with --force.
Something went wrong with the download of FSharp.Compiler.Service 0.0.58 - automatic retry with --force
.
Something went wrong with the download of FSharp.Core.3 0.0.2 - automatic retry with --force.
Downloading SimpleJson 0.30.0 to C:\Users\Andrea\AppData\Local\NuGet\Cache\SimpleJson.0.30.0.nupkg
Downloading FileHelpers-Stable 2.9.9 to C:\Users\Andrea\AppData\Local\NuGet\Cache\FileHelpers-Stable.2.
9.9.nupkg
Downloading FSharp.Compiler.Service 0.0.58 to C:\Users\Andrea\AppData\Local\NuGet\Cache\FSharp.Compiler
.Service.0.0.58.nupkg
Downloading FSharp.Core.3 0.0.2 to C:\Users\Andrea\AppData\Local\NuGet\Cache\FSharp.Core.3.0.0.2.nupkg
Something went wrong with the download of Discipline Oak 0.1.30 - automatic retry with --force.
Something went wrong with the download of Duality Editor 0.1.189 - automatic retry with --force.
Something went wrong with the download of Community Express (Steamworks) 0.1.0.0-CI00002 - automatic re
try with --force.
Something went wrong with the download of Duality Scripting Plugin 0.1.113-beta - automatic retry with
--force.
Something went wrong with the download of Spine runtime c# 0.1.16 - automatic retry with --force.
Paket failed with:
Could not retrieve data from https://www.myget.org/F/6416d9912a7c4d46bc983870fb440d25/Packages(Id='D
iscipline Oak',Version='0.1.30')
Message: The remote server returned an error: (404) Not Found.
Is this a well know issue? debugging...
mexx commentedon Nov 23, 2014
@Andrea #288 was reverted, since it caused problems, so dashes in prerelease identifiers are still not handled correctly.
We anyway have to adjust the version scheme when NuGet v3 is there, that's what #289 is for.
Your problem seams to be unrelated to this issue, as far I can see.
@forki this issue should be reopened, since it's not fixed yet.
Andrea commentedon Nov 24, 2014
@mexx ok good to know. Any pointers as to what the problem could be welcome, a debug session sent me in very a different direction
mexx commentedon Nov 27, 2014
@Andrea sorry, but I have no idea. @forki Wait, could it be the problem with NuGet v3 support and myget.org?
forki commentedon Nov 28, 2014
Can I see the paket.dependencies file?
Create regression tests for #263
bigbearzhu commentedon Oct 14, 2016
This issue still exists. Should we reopen this?
baronfel commentedon Oct 14, 2016
I'm slacking on this terribly, but there was a related fix in FAKE for the SemVer parser that corrected our handling of prerelease versions. That fix is here: fsprojects/FAKE#1325, specifically the SemVerHelper. I've been meaning to port those fixes over to Paket, in both the semver structures in the bootstrapper and Paket proper.
jam40jeff commentedon Nov 17, 2016
Thanks, @baronfel. I just came here to report this issue and was pleased to see it's already being worked on.