{"action":"created","issue":{"url":"https://api.github.com/repos/fsprojects/Paket/issues/1188","labels_url":"https://api.github.com/repos/fsprojects/Paket/issues/1188/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/Paket/issues/1188/comments","events_url":"https://api.github.com/repos/fsprojects/Paket/issues/1188/events","html_url":"https://github.com/fsprojects/Paket/issues/1188","id":114724356,"number":1188,"title":"Temporarily overwrite a nuget package with a local version","user":{"login":"beraboris","id":1874242,"avatar_url":"https://avatars.githubusercontent.com/u/1874242?v=3","gravatar_id":"","url":"https://api.github.com/users/beraboris","html_url":"https://github.com/beraboris","followers_url":"https://api.github.com/users/beraboris/followers","following_url":"https://api.github.com/users/beraboris/following{/other_user}","gists_url":"https://api.github.com/users/beraboris/gists{/gist_id}","starred_url":"https://api.github.com/users/beraboris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beraboris/subscriptions","organizations_url":"https://api.github.com/users/beraboris/orgs","repos_url":"https://api.github.com/users/beraboris/repos","events_url":"https://api.github.com/users/beraboris/events{/privacy}","received_events_url":"https://api.github.com/users/beraboris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-03T01:39:12Z","updated_at":"2015-11-06T10:32:36Z","closed_at":null,"body":"I'd like to ask for a feature to be added to Paket that would allow me to overwrite a package that is normally hosted on a nuget feed with a project or nuget package on my local file system. The overwrite is meant to be a temporary thing for development purposes.\r\n\r\nLet me explain in a little more detail:\r\n\r\nImagine that you have a two projects. Let's call these `Acme.Utils` and `Acme.NeatApp`. They're both stored in different repositories and both are packaged as nuget packages. In this example, `Acme.NeatApp` depends on `Acme.Utils`.\r\n\r\nIn most cases, the two packages are perfectly fine existing as their own nuget pacakges. In some rarer instances a developer needs to work both libs at the same time. To give a concrete example, let's say that the dev needs to work on `Acme.Utils` and test the changes in `Acme.NeatApp`.\r\n\r\nTo do this with the usual nuget setup with paket, we would have to make a change to `Acme.Utils`, build and push a package (probably overwriting an older version) and finally run `paket restore` on `Acme.NeatApp`.\r\n\r\nThis is a pretty slow and messy way of working.\r\n\r\nOne way of doing this with paket is to edit `paket.dependencies` and set the source of the package as the directory where it's built. This is not as bad as the previous method but there are still some things that could be better.\r\n\r\nWe still have to build the `Acme.Utils` package and we also have to run `paket restore` on `Acme.NeatApp`. Another problem with this approach is that it messes with the `paket.dependencies` and `paket.lock` files. This is a problem for two reasons, if you make commits you need to be sure to avoid committing both of those files. Also, if when you're done you need to restore both of these files to their original state.\r\n\r\nThere's another thing that might make this very annoying. I'm not familiar enough with nuget to be sure, but it's possible that if a nuget package is already installed for a certain version, paket or nuget won't install again. In such a case, you'd have to delete the old package files first.\r\n\r\nWhat I want is something that can reduce the time it takes between making a change in `Acme.Utils` and seeing its results in `Acme.NeatApp`.\r\n\r\nTo give you a better idea of what I mean, you can look at:\r\n\r\n- Bundler's similar feature http://bundler.io/v1.10/bundle_config.html#local_git_repos\r\n- Bower's link command http://bower.io/docs/api/#link\r\n\r\nMy needs only cover nuget packages, but I'm sure this can be applied to http and github dependencies."},"comment":{"url":"https://api.github.com/repos/fsprojects/Paket/issues/comments/154374471","html_url":"https://github.com/fsprojects/Paket/issues/1188#issuecomment-154374471","issue_url":"https://api.github.com/repos/fsprojects/Paket/issues/1188","id":154374471,"user":{"login":"forki","id":57396,"avatar_url":"https://avatars.githubusercontent.com/u/57396?v=3","gravatar_id":"","url":"https://api.github.com/users/forki","html_url":"https://github.com/forki","followers_url":"https://api.github.com/users/forki/followers","following_url":"https://api.github.com/users/forki/following{/other_user}","gists_url":"https://api.github.com/users/forki/gists{/gist_id}","starred_url":"https://api.github.com/users/forki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forki/subscriptions","organizations_url":"https://api.github.com/users/forki/orgs","repos_url":"https://api.github.com/users/forki/repos","events_url":"https://api.github.com/users/forki/events{/privacy}","received_events_url":"https://api.github.com/users/forki/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T10:32:36Z","updated_at":"2015-11-06T10:32:36Z","body":"Mhm good point. As I see it: switching packages would be relatively easy.\nSwitching package against project is nearly impossible with csproj and\nfsproj.\n\nRegarding FCS. We should use FAKE + paket to create the nupkg. That process\nshould be xplat\nOn Nov 6, 2015 11:24 AM, \"Dave Thomas\" <notifications@github.com> wrote:\n\n> I think swapping the nuget package for a local one is a good start. Thats\n> if you can generate them locally.\n>\n> I often find that nuget wont create packages due to all the windows\n> centric paths and issue etc. My most common use case is FCS where I find a\n> bug that I patch locally, but because I cant generate a nuget package I\n> have to switch to direct dll references and remove the paket references. It\n> really is a shame that .Net doesn't have a well though out package system\n> like almost all other languages. Um glad we have paket to at least remove\n> some of the pain.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/fsprojects/Paket/issues/1188#issuecomment-154372813>.\n>\n"}}