Skip to content

Commit

Permalink
Do not create prerelease identifiers for transitive dependencies - fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Sep 29, 2015
1 parent a914c37 commit 4be3f6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### 2.5.1 - 29.09.2015
* BUGFIX: Do not create prerelease identifiers for transitive dependencies - https://github.com/fsprojects/Paket/issues/1099

#### 2.5.0 - 29.09.2015
* Remove all Paket entries from projects which have no paket.references - https://github.com/fsprojects/Paket/issues/1097
* Allow to format VersionRequirements in NuGet syntax
Expand Down
4 changes: 2 additions & 2 deletions src/Paket.Core/PackageMetaData.fs
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,14 @@ let findDependencies (dependencies : DependenciesFile) config (template : Templa
group.Resolution
|> Map.tryFind np.Name
|> Option.map (fun transient -> transient.Version)
|> Option.map (fun v -> VersionRequirement(Minimum v, PreReleaseStatus.All))
|> Option.map (fun v -> VersionRequirement(Minimum v, PreReleaseStatus.No))
else
match lockFile.Groups |> Map.tryFind groupName with
| None -> None
| Some group ->
Map.tryFind np.Name group.Resolution
|> Option.map (fun resolvedPackage -> resolvedPackage.Version)
|> Option.map (fun version -> VersionRequirement(Specific version, PreReleaseStatus.All))
|> Option.map (fun version -> VersionRequirement(Specific version, PreReleaseStatus.No))
let dep =
match dependencyVersionRequirement with
| Some installed -> installed
Expand Down

0 comments on commit 4be3f6f

Please sign in to comment.