Skip to content

Commit

Permalink
Paket failed when group is removed (or renamed) - fixes #2281
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Apr 26, 2017
1 parent 118f0b8 commit e2bc6ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#### 4.8.3 - 26.04.2017
* BUGFIX: Paket failed when group is removed (or renamed) - https://github.com/fsprojects/Paket/pull/2281

#### 4.8.2 - 26.04.2017
* BUGFIX: Filter .targets / .props earlier - https://github.com/fsprojects/Paket/pull/2286
Expand Down
8 changes: 7 additions & 1 deletion src/Paket.Core/UpdateProcess.fs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,13 @@ let selectiveUpdate force getSha1 getSortedVersionsF getPackageDetailsF (lockFil

let preferredVersions =
DependencyChangeDetection.GetPreferredNuGetVersions(dependenciesFile,lockFile)
|> Map.map (fun (groupName,packageName) (v,s) -> v,s :: (List.map PackageSources.PackageSource.FromCache (dependenciesFile.GetGroup(groupName).Caches)))
|> Map.map (fun (groupName,packageName) (v,s) ->
let caches =
match dependenciesFile.Groups |> Map.tryFind groupName with
| None -> []
| Some group -> group.Caches

v,s :: (List.map PackageSources.PackageSource.FromCache caches))

let getVersionsF sources resolverStrategy groupName packageName =
seq {
Expand Down

0 comments on commit e2bc6ab

Please sign in to comment.