question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Paket thinks things have changed

See original GitHub issue

Description

I upgraded a few libs in Logary, ‘paket update’ and then ‘paket install’ which got:

Performance:
 - Resolver: 11 seconds (1 runs)
    - Runtime: 1 second
    - Blocked (retrieving package details): 10 seconds (167 times)
    - Not Blocked (retrieving package details): 30 times
    - Not Blocked (retrieving package versions): 3 times
 - Disk IO: 208 milliseconds
 - Average Request Time: 82 milliseconds
 - Number of Requests: 183
 - Runtime: 22 seconds
$ $_
0

Then ./build.sh yields a lot of output like:

  Paket version 5.166.0
  paket.dependencies and paket.lock are out of sync in /Users/h/dev/logibit/logary.
  Please run 'paket install' or 'paket update' to recompute the paket.lock file.
  Changes were detected for Main/Expecto
      - SettingsChanged
  Changes were detected for Main/Expecto.FsCheck
      - SettingsChanged
  Changes were detected for Main/Expecto.Hopac
      - SettingsChanged

But running paket install does nothing.

I then ran paket update which is not what I want (because I don’t want to update any nugets), and this delta appeared in paket.lock:

diff --git a/paket.lock b/paket.lock
index 7673efe3..17d034a7 100644
--- a/paket.lock
+++ b/paket.lock
@@ -2122,12 +2122,12 @@ NUGET
       System.Runtime (>= 4.3) - restriction: || (&& (== net461) (>= dnxcore50)) (&& (== net461) (< net45)) (== netcoreapp2.0) (== netstandard2.0)
       System.Text.Encoding (>= 4.3) - restriction: || (&& (== net461) (>= dnxcore50)) (&& (== net461) (< net45)) (== netcoreapp2.0) (== netstandard2.0)
     System.Text.RegularExpressions (4.3) - restriction: || (&& (== net461) (< net451) (>= netstandard1.5)) (== netcoreapp2.0) (== netstandard2.0)
-      System.Collections (>= 4.3) - restriction: || (&& (== net461) (== netcoreapp2.0)) (&& (== net461) (>= dnxcore50)) (&& (== net461) (< net45) (>= netstandard1.6)) (&& (== netcoreapp2.0) (>= dnxcore50)) (&& (== netcoreapp2.0) (< netcoreapp1.1)) (== netstandard2.0)
-      System.Globalization (>= 4.3) - restriction: || (&& (== net461) (== netcoreapp2.0)) (&& (== net461) (>= dnxcore50)) (&& (== net461) (< net45) (>= netstandard1.6)) (&& (== netcoreapp2.0) (>= dnxcore50)) (&& (== netcoreapp2.0) (< netcoreapp1.1)) (== netstandard2.0)
-      System.Resources.ResourceManager (>= 4.3) - restriction: || (&& (== net461) (== netcoreapp2.0)) (&& (== net461) (>= dnxcore50)) (&& (== net461) (< net45) (>= netstandard1.6)) (&& (== netcoreapp2.0) (>= dnxcore50)) (&& (== netcoreapp2.0) (< netcoreapp1.1)) (== netstandard2.0)
+      System.Collections (>= 4.3) - restriction: || (&& (== net461) (>= dnxcore50)) (&& (== net461) (< net45) (>= netstandard1.6)) (&& (== netcoreapp2.0) (>= dnxcore50)) (&& (== netcoreapp2.0) (< netcoreapp1.1)) (== netstandard2.0)
+      System.Globalization (>= 4.3) - restriction: || (&& (== net461) (>= dnxcore50)) (&& (== net461) (< net45) (>= netstandard1.6)) (&& (== netcoreapp2.0) (>= dnxcore50)) (&& (== netcoreapp2.0) (< netcoreapp1.1)) (== netstandard2.0)
+      System.Resources.ResourceManager (>= 4.3) - restriction: || (&& (== net461) (>= dnxcore50)) (&& (== net461) (< net45) (>= netstandard1.6)) (&& (== netcoreapp2.0) (>= dnxcore50)) (&& (== netcoreapp2.0) (< netcoreapp1.1)) (== netstandard2.0)
       System.Runtime (>= 4.3) - restriction: || (&& (== net461) (>= dnxcore50)) (&& (== net461) (< net45)) (&& (== net461) (>= netcoreapp1.1)) (== netcoreapp2.0) (== netstandard2.0)
-      System.Runtime.Extensions (>= 4.3) - restriction: || (&& (== net461) (== netcoreapp2.0)) (&& (== net461) (>= dnxcore50)) (&& (== net461) (< net45) (>= netstandard1.6)) (&& (== netcoreapp2.0) (>= dnxcore50)) (&& (== netcoreapp2.0) (< netcoreapp1.1)) (== netstandard2.0)
-      System.Threading (>= 4.3) - restriction: || (&& (== net461) (== netcoreapp2.0)) (&& (== net461) (>= dnxcore50)) (&& (== net461) (< net45) (>= netstandard1.6)) (&& (== netcoreapp2.0) (>= dnxcore50)) (&& (== netcoreapp2.0) (< netcoreapp1.1)) (== netstandard2.0)
+      System.Runtime.Extensions (>= 4.3) - restriction: || (&& (== net461) (>= dnxcore50)) (&& (== net461) (< net45) (>= netstandard1.6)) (&& (== netcoreapp2.0) (>= dnxcore50)) (&& (== netcoreapp2.0) (< netcoreapp1.1)) (== netstandard2.0)
+      System.Threading (>= 4.3) - restriction: || (&& (== net461) (>= dnxcore50)) (&& (== net461) (< net45) (>= netstandard1.6)) (&& (== netcoreapp2.0) (>= dnxcore50)) (&& (== netcoreapp2.0) (< netcoreapp1.1)) (== netstandard2.0)
     System.Threading (4.3) - restriction: || (&& (== net461) (>= dnxcore50) (>= netstandard1.5)) (&& (== net461) (< net45) (>= netstandard1.6)) (&& (== net461) (< net451) (>= netstandard1.5)) (== netcoreapp2.0) (== netstandard2.0)
       System.Runtime (>= 4.3) - restriction: || (&& (== net461) (>= dnxcore50)) (&& (== net461) (< net45)) (== netcoreapp2.0) (== netstandard2.0)
       System.Threading.Tasks (>= 4.3) - restriction: || (&& (== net461) (>= dnxcore50)) (&& (== net461) (< net45)) (== netcoreapp2.0) (== netstandard2.0)

After letting paket have its way with the lockfile, paket still thinks something is amiss and output the warning while building, so it did not in fact solve anything.

These steps can be done on the parent commit of https://github.com/logary/logary/commit/d3ce90ede612cbe93e0e9aaf17f960c5db9e7700

Expected behavior

Following the output’s suggestion, paket install, should work.

Also, why paket keeps changing the set of system.* libraries and their constraints I have no idea of, since I haven’t changed my compile targets.

Actual behavior

A lot of frequent churn in System.* packages for no apparent reason.

Known workarounds

None

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
forkicommented, Jun 11, 2018

Restore should behave fine now

0reactions
forkicommented, Jun 11, 2018

ok scratch that. need to investigate further

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started with Paket – Part 1 - The Cockney Coder
So, if you add or remove a dependency, paket will contact the NuGet server to get version information on the changed packages and...
Read more >
The paket.dependencies file
The paket.dependencies file is used to specify rules regarding your application's dependencies. It contains top level dependencies from all projects in the ...
Read more >
Visual Studio always rebuilds solution with Paket
But the issue is, that Visual Studio always thinks that the app.config of each project has been changed. But looking into my changes...
Read more >
My boyfriend thinks I have changed. Does this mean he ...
No, it means you have changed. He's a guy. We don't do “nuance”. Something about your relationship is different. Since as a guy,...
Read more >
Why Does She Keep Bringing Up the Past?
Once she feels validated and like you understand why she upset, she can come back to the logical and her defensive and/or emotional...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found