Skip to content

Commit

Permalink
BUGFIX: Paket failed on generating lockfile for LessThan version requ…
Browse files Browse the repository at this point in the history
…irement - #314
  • Loading branch information
forki committed Oct 30, 2014
1 parent 35337fe commit 9fe44f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### 0.11.4 - 30.10.2014
* BUGFIX: Paket failed on generating lockfile for LessThan version requirement - https://github.com/fsprojects/Paket/pull/314

#### 0.11.3 - 29.10.2014
* Project output type can be detected from a project file

Expand Down
8 changes: 2 additions & 6 deletions src/Paket.Core/LockFile.fs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ open Paket.ModuleResolver
open Paket.PackageSources

module LockFileSerializer =
/// [omit]
let formatVersionRange (version : VersionRequirement) =
version.ToString()

/// [omit]
let serializePackages options (resolved : PackageResolution) =
let sources =
Expand Down Expand Up @@ -40,7 +36,7 @@ module LockFileSerializer =
for _,_,package in packages |> Seq.sortBy (fun (_,_,p) -> p.Name.ToLower()) do
yield sprintf " %s (%s)" package.Name (package.Version.ToString())
for name,v in package.Dependencies do
yield sprintf " %s (%s)" name (formatVersionRange v)]
yield sprintf " %s (%s)" name (v.ToString())]

String.Join(Environment.NewLine, all)

Expand All @@ -58,7 +54,7 @@ module LockFileSerializer =
let path = file.Name.TrimStart '/'
yield sprintf " %s (%s)" path file.Commit
for (name,v) in file.Dependencies do
yield sprintf " %s (%s)" name (formatVersionRange v)]
yield sprintf " %s (%s)" name (v.ToString())]

String.Join(Environment.NewLine, all)

Expand Down

0 comments on commit 9fe44f5

Please sign in to comment.