Skip to content

Commit

Permalink
auto-detect no onger causes Out of sync warning - fixes #2096
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Mar 13, 2017
1 parent 618dfe0 commit 5b216e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### 3.36.5 - 13.03.2017
* BUGFIX: auto-detect no onger causes Out of sync warning - https://github.com/fsprojects/Paket/issues/2096

#### 3.36.4 - 13.03.2017
* USABILITY: Remove confusing yellow diagnostics in pack - https://github.com/fsprojects/Paket/issues/2164

Expand Down
11 changes: 6 additions & 5 deletions src/Paket.Core/DependencyChangeDetection.fs
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,20 @@ let findNuGetChangesInDependenciesFile(dependenciesFile:DependenciesFile,lockFil
let added groupName transitives =
match dependenciesFile.Groups |> Map.tryFind groupName with
| None -> Set.empty
| Some group ->
| Some depsGroup ->
let lockFileGroup = lockFile.Groups |> Map.tryFind groupName
group.Packages
depsGroup.Packages
|> Seq.map (fun d ->
d.Name, { d with Settings = group.Options.Settings + d.Settings })
d.Name, { d with Settings = depsGroup.Options.Settings + d.Settings })
|> Seq.filter (fun (name,dependenciesFilePackage) ->
match lockFileGroup with
| None -> true
| Some group ->
match group.Resolution.TryFind name with
| Some lockFilePackage ->
let p' = { lockFilePackage with Settings = group.Options.Settings + lockFilePackage.Settings }
hasChanged groupName transitives dependenciesFilePackage p'
hasChanged groupName transitives
{ dependenciesFilePackage with Settings = depsGroup.Options.Settings + dependenciesFilePackage.Settings }
{ lockFilePackage with Settings = group.Options.Settings + lockFilePackage.Settings }
| _ -> true)
|> Seq.map (fun (p,_) -> groupName,p)
|> Set.ofSeq
Expand Down

0 comments on commit 5b216e1

Please sign in to comment.