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 confusing parallel package downloads with each other

See original GitHub issue

Description

Lately I often run into an issue where Paket seems to confuse parallel downloads with each other, and putting the content of one nupkg into the file name of another package.

For example, after trying to use Accord, within the AppData/Local/NuGet/Cache folder, the file Accord.Extensions.Core.3.0.1.nupkg actually contains the data that it should have written to another file name Accord.Extensions.Math.3.0.1.nupkg.

2016-11-02 09_07_55-nuget package explorer rd extensions math 3 0 1

2016-11-02 09_10_05-mingw64__c_svn_mathnet_mathnet-numerics

This does not happen when I use e.g. the NuGet Package Explorer to download the same package from the same feed (otherwise I’d have suspected our proxy server to mess things up).

Am I the only one seeing this form time to time?

Repro steps

  1. clean caches
  2. Try to restore the following lock file:
GROUP Benchmark
FRAMEWORK: NET45
NUGET
  remote: http://www.nuget.org/api/v2
    Accord (3.3)
    Accord.Extensions.Core (3.0.1)
      Accord (>= 3.0.2)
    Accord.Extensions.Math (3.0.1)
      Accord.Extensions.Core (>= 3.0.1)
      Accord.Statistics (>= 3.0.2)
      DotImaging.Primitives2D (>= 2.5.3)
    Accord.Math (3.3)
      Accord (>= 3.3)
    Accord.Statistics (3.3)
      Accord (>= 3.3)
      Accord.Math (>= 3.3)
    DotImaging.Primitives2D (4.8.3)

and dependencies file:

group Benchmark
    source http://www.nuget.org/api/v2
    framework: net45
	nuget Accord.Math
	nuget Accord.Extensions.Math

Expected behavior

Download Accord.Extensions.Core.3.0.1 into the Accord.Extensions.Core.3.0.1.nupkg cache file, and Accord.Extensions.Math.3.0.1 into the Accord.Extensions.Math.3.0.1.nupkg cache file.

Actual behavior

Downloads Accord.Extensions.Math.3.0.1 into the Accord.Extensions.Core.3.0.1.nupkg cache file.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
forkicommented, Nov 2, 2016

What if you switch to https?

Am 02.11.2016 09:15 schrieb “Christoph Ruegg” notifications@github.com:

Description

Lately I often run into an issue where Paket seems to confuse parallel downloads with each other, and putting the content of one nupkg into the file name of another package.

For example, after trying to use Accord, within the AppData/Local/NuGet/Cache folder, the file Accord.Extensions.Core.3.0.1. nupkg actually contains the data that it should have written to another file name Accord.Extensions.Math.3.0.1.nupkg.

[image: 2016-11-02 09_07_55-nuget package explorer rd extensions math 3 0 1] https://cloud.githubusercontent.com/assets/47147/19920993/1f8fa578-a0dc-11e6-9c91-9b84d38f6567.png

[image: 2016-11-02 09_10_05-mingw64__c_svn_mathnet_mathnet-numerics] https://cloud.githubusercontent.com/assets/47147/19921020/38603c98-a0dc-11e6-87a9-945a235bc2ac.png

This does not happen when I use e.g. the NuGet Package Explorer to download the same package from the same feed (otherwise I’d have suspected our proxy server to mess things up).

Am I the only one seeing this form time to time? Repro steps

  1. clean caches
  2. Try to restore the following lock file:

GROUP Benchmark FRAMEWORK: NET45 NUGET remote: http://www.nuget.org/api/v2 Accord (3.3) Accord.Extensions.Core (3.0.1) Accord (>= 3.0.2) Accord.Extensions.Math (3.0.1) Accord.Extensions.Core (>= 3.0.1) Accord.Statistics (>= 3.0.2) DotImaging.Primitives2D (>= 2.5.3) Accord.Math (3.3) Accord (>= 3.3) Accord.Statistics (3.3) Accord (>= 3.3) Accord.Math (>= 3.3) DotImaging.Primitives2D (4.8.3)

and dependencies file:

group Benchmark source http://www.nuget.org/api/v2 framework: net45 nuget Accord.Math nuget Accord.Extensions.Math

Expected behavior

Download Accord.Extensions.Core.3.0.1 into the Accord.Extensions.Core.3.0.1.nupkg cache file, and Accord.Extensions.Math.3.0.1 into the Accord.Extensions.Math.3.0.1.nupkg cache file. Actual behavior

Downloads Accord.Extensions.Math.3.0.1 into the Accord.Extensions.Core.3.0.1.nupkg cache file.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fsprojects/Paket/issues/1996, or mute the thread https://github.com/notifications/unsubscribe-auth/AADgNHDlZVpoigK3bKwpJU8sPdUZxamCks5q6EaygaJpZM4Km9gS .

0reactions
enricosadacommented, Jan 24, 2018

Yes, that works for me. Thanks.

Closing, fixed in user environemt

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parallelize downloading multiple packages sources #915
I meant having the downloading process running in parallel to the building process. There would still be only one compilation process at a...
Read more >
Parallel Package Installation : r/emacs
The startup experience is bad since there is no progress, and there is no built-in option to download packages in parallel.
Read more >
release-notes
PERFORMANCE: If Paket didn't download a package, then it will no longer try to extract it - https://github.com/fsprojects/Paket/pull/3607 ...
Read more >
Efficient parallel downloading and decompressing with ...
This way you will decompress while downloading and doing all in parallel. Share.
Read more >
Package manager
Looking up, downloading, installing, or updating existing software from a software repository or app store; Grouping packages by function to reduce user ...
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