-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with more than one feed #814
Comments
BUG1, BUG2 are confirmed as bugs and resolved in current version. Is there any chance for me to get private access to your internal feed? |
I am afraid it's not possible. It's an internal company feed. However I can provide a sample that was the reason why I decided to make a repro: BUG4
paket.dependencies: source http://internalfeed/NugetWebFeed/nuget nuget Internal_1 ~> 0.0 source https://www.nuget.org/api/v2 nuget Microsoft.AspNet.WebApi When:
INFO1 When: INFO2 When: |
So the question is: Why paket tries to get package details of WebApi (official nuget) on internal_feed (which hosts WebApi's dependency: Newtonsoft.Json)? |
could you please try to align the paket.lock correctly? |
hint: use editor and insert 4 spaces before every line of your code. then copy into comment. |
Done |
is there a version given after Internal_1 ? |
Yes, there is. I updated the lock file. I also noticed that there's Internal_2 that also requires Newtonsoft.Json. Paket.dependencies updated as well. |
Please note that I haven't published the entire lock and dependencies file. Just the relevant parts (dealing with Json and WebApi) |
I think I found the issue. |
Glad to hear that :) Is it fixable? :) |
sure 2015-05-06 10:32 GMT+02:00 Jedrzej Grabowski notifications@github.com:
|
please verify if the thing works now. |
Unfortunately it doesn't... I'm going to give you some details shortly... |
BUG3: The same error: Nothing's changed. Paket version 1.3.22.0
|
ok I see. |
sorry playing ping pong here, but since I can't access the feed it's just guessing what's wrong. Anyways there is a new version available. |
I don't mind the ping pong :) Still problems:
BUG4: paket.dependencies: Then (outcome):
Paket failed with: |
BUG4: When you delete paket.lock and run paket install, then there are no errors. |
Yes it's still a bug with the "smart" install. Will try to look deeper 2015-05-06 12:18 GMT+02:00 Jedrzej Grabowski notifications@github.com:
|
Regarding Bug 3: didn't you say log4net is on the internal feed? It seems to look into the correct feed. |
I did. So as Newtonsoft.Json (the original error). Let me run sanity check with log4net to prove that log4net is accessible from internal feed... |
Indeed paket (both 0.4.2 and the latest one) is not able to get the information. However when I launched NuGet (via VS's Manage NuGet Packages) with the internal feed I could install log4net successfully: ------- Installing...log4net 1.2.10 -------
Bizarre... |
I have no idea how to debug this one. |
I spotted a file in NuGet local cache (C:\Users\user\AppData\Local\NuGet\Cache): log4net.1.2.0.s2000701002.json.failed. Its content: System.Exception: Could not retrieve data from http://internalfeed/NugetWebFeed/nuget/Packages(Id='log4net',Version='1.2.0') Does it help? EDIT: I ran it again after clearing NuGet cache via VS settings. |
yes please delete the whole cache or retry with |
I found the problem. My mistake. BUG3 fixed. |
Ok all bugs mentioned in this ticket have been fixed (verified with 1.3.25.0). Thank you very much for such a quick fix! |
Actually I'm having a problem. I think we need to reopen this one... BUG5
NOTE: I could install a dependency that was present on the internal feed. |
please try 1.3.26 |
I'll try tomorrow when I come to work and have access to the internal feed. |
I am delighted to confirm that the above bugs have been fixed! |
I'm having problems with one of the latest paket binaries (1.3.8). It seems that 0.4.2 doesn't show those problems.
3a. SANITYCHECK confirms that Newtonsoft.Json is available on the internal feed.
Unfortuantely I am not able to send you a repro because of the internal feed involved.
BUG1
Given:
paket.references EMPTY
paket.dependencies with one line (source https://nuget.org/api/v2)
paket.lock EMPTY
When:
paket add nuget Microsoft.AspNet.WebApi project PaketSandbox
Then:
Paket version 1.3.8.0
Adding Microsoft.AspNet.WebApi to C:\Users\user\Documents\Visual Studio 2013\Projects\PaketSandbox\paket.dependencies
Resolving packages:
Paket failed with:
Could not find versions for package Microsoft.AspNet.WebApi in any of the sources in [].
BUG2
Given:
paket.references EMPTY
paket.dependencies with one line (source https://nuget.org/api/v2)
paket.lock ABSENT
When:
paket add nuget Microsoft.AspNet.WebApi project PaketSandbox
Then:
Paket version 1.3.8.0
Adding Microsoft.AspNet.WebApi to C:\Users\user\Documents\Visual Studio 2013\Projects\PaketSandbox\paket.dependencies
Resolving packages:
Paket failed with:
Could not find versions for package Microsoft.AspNet.WebApi in any of the sources in [].
WEBAPI
Given:
paket.references EMPTY
paket.dependencies EMPTY
paket.lock EMPTY
When:
paket add nuget Microsoft.AspNet.WebApi project PaketSandbox
Then:
Paket version 1.3.8.0
Adding Microsoft.AspNet.WebApi to C:\Users\user\Documents\Visual Studio 2013\Projects\PaketSandbox\paket.dependencies
Resolving packages:
Locked version resolutions written to C:\Users\user\Documents\Visual Studio 2013\Projects\PaketSandbox\paket.lock
Dependencies files saved to C:\Users\user\Documents\Visual Studio 2013\Projects\PaketSandbox\paket.dependencies
Adding Microsoft.AspNet.WebApi to C:\Users\user\Documents\Visual Studio 2013\Projects\PaketSandbox\PaketSandbox\paket.references
References file saved to C:\Users\user\Documents\Visual Studio 2013\Projects\PaketSandbox\PaketSandbox\paket.references
4 seconds - ready.
BUG3
Given:
source http://internalfeed/NugetWebFeed/nuget //Add this line (internalfeed contains Newtonsoft.Json)
nuget log4net 1.2.0 //Add this line (internalfeed contains log4net)
source https://nuget.org/api/v2 //Created by WEBAPI
nuget Microsoft.AspNet.WebApi //Created by WEBAPI
When:
paket add nuget log4net project PaketSandbox
Then:
Paket version 1.3.8.0
C:\Users\user\Documents\Visual Studio 2013\Projects\PaketSandbox\paket.dependencies contains package log4net already. ==> Ignored
Resolving packages:
Paket failed with:
Couldn't get package details for package Newtonsoft.Json on any of ["http://internalfeed/NugetWebFeed/nuget"].
SANITYCHECK
Given:
paket.references EMPTY
paket.lock EMPTY
paket.dependencies:
source http://internalfeed/NugetWebFeed/nuget //(feed contains Newtonsoft.Json)
nuget Newtonsoft.Json
When:
paket add nuget Newtonsoft.Json project PaketSandbox
Then:
Paket version 1.3.8.0
C:\Users\user\Documents\Visual Studio 2013\Projects\PaketSandbox\paket.dependencies contains package Newtonsoft.Json already. ==> Ignored
Resolving packages:
Locked version resolutions written to C:\Users\user\Documents\Visual Studio 2013\Projects\PaketSandbox\paket.lock
Dependencies files saved to C:\Users\user\Documents\Visual Studio 2013\Projects\PaketSandbox\paket.dependencies
Adding Newtonsoft.Json to C:\Users\user\Documents\Visual Studio 2013\Projects\PaketSandbox\PaketSandbox\paket.references
References file saved to C:\Users\user\Documents\Visual Studio 2013\Projects\PaketSandbox\PaketSandbox\paket.references
Newtonsoft.Json 6.0.6 unzipped to C:\Users\user\Documents\Visual Studio 2013\Projects\PaketSandbox\packages\Newtonsoft.Json
1 second - ready.
paket.lock:
NUGET
remote: http://internalfeed/NugetWebFeed/nuget
specs:
Newtonsoft.Json (6.0.6)
The text was updated successfully, but these errors were encountered: