{"action":"created","issue":{"url":"https://api.github.com/repos/fsprojects/Paket/issues/905","labels_url":"https://api.github.com/repos/fsprojects/Paket/issues/905/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/Paket/issues/905/comments","events_url":"https://api.github.com/repos/fsprojects/Paket/issues/905/events","html_url":"https://github.com/fsprojects/Paket/issues/905","id":91473248,"number":905,"title":"Should paket.pack include dependencies as inferred by paket.lock?","user":{"login":"eiriktsarpalis","id":2813363,"avatar_url":"https://avatars.githubusercontent.com/u/2813363?v=3","gravatar_id":"","url":"https://api.github.com/users/eiriktsarpalis","html_url":"https://github.com/eiriktsarpalis","followers_url":"https://api.github.com/users/eiriktsarpalis/followers","following_url":"https://api.github.com/users/eiriktsarpalis/following{/other_user}","gists_url":"https://api.github.com/users/eiriktsarpalis/gists{/gist_id}","starred_url":"https://api.github.com/users/eiriktsarpalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eiriktsarpalis/subscriptions","organizations_url":"https://api.github.com/users/eiriktsarpalis/orgs","repos_url":"https://api.github.com/users/eiriktsarpalis/repos","events_url":"https://api.github.com/users/eiriktsarpalis/events{/privacy}","received_events_url":"https://api.github.com/users/eiriktsarpalis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-27T14:26:45Z","updated_at":"2015-07-01T15:25:05Z","closed_at":null,"body":"I came across the following issue, which can be witnessed in [this commit](https://github.com/mbraceproject/MBrace.Core/tree/963e40ff561b0853da7b641f864dbb16e4e33bb0).\r\n\r\nIn the `Paket.dependencies` file, I have included the following lines:\r\n```\r\nsource https://nuget.org/api/v2\r\n\r\nnuget FsPickler 1.2.9\r\nnuget FsPickler.Json\r\n```\r\nMBrace requires the FsPickler libraries to be version 1.2.9 precisely. When adding them, I decided to skip the FsPickler.Json version number, anticipating Paket to deduce it correctly, which it did:\r\n```\r\nNUGET\r\n  remote: https://nuget.org/api/v2\r\n  specs:\r\n    FsPickler (1.2.9)\r\n    FsPickler.Json (1.2.9)\r\n```\r\nHowever, when generating the nuget packages for MBrace, the following nuspec was created:\r\n```xml\r\n      <dependency id=\"FsPickler.Json\" version=\"\" />\r\n      <dependency id=\"FsPickler\" version=\"[1.2.9]\" />\r\n```\r\nwhen it should really have been\r\n```xml\r\n      <dependency id=\"FsPickler.Json\" version=\"[1.2.9]\" />\r\n      <dependency id=\"FsPickler\" version=\"[1.2.9]\" />\r\n```\r\nI did not notice this issue because we use paket on all our projects and no errors occurred when consuming the packages. However, @mathias-brandewinder reported [this issue](https://github.com/mbraceproject/MBrace.Core/issues/104) when using the default nuget client, so clearly something must be wrong. The obvious fix here (which I did) is to alter the original Paket.dependencies file to be like this:\r\n```\r\nsource https://nuget.org/api/v2\r\n\r\nnuget FsPickler 1.2.9\r\nnuget FsPickler.Json 1.2.9\r\n```\r\nhowever this feels redundant.\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/fsprojects/Paket/issues/comments/117714521","html_url":"https://github.com/fsprojects/Paket/issues/905#issuecomment-117714521","issue_url":"https://api.github.com/repos/fsprojects/Paket/issues/905","id":117714521,"user":{"login":"eiriktsarpalis","id":2813363,"avatar_url":"https://avatars.githubusercontent.com/u/2813363?v=3","gravatar_id":"","url":"https://api.github.com/users/eiriktsarpalis","html_url":"https://github.com/eiriktsarpalis","followers_url":"https://api.github.com/users/eiriktsarpalis/followers","following_url":"https://api.github.com/users/eiriktsarpalis/following{/other_user}","gists_url":"https://api.github.com/users/eiriktsarpalis/gists{/gist_id}","starred_url":"https://api.github.com/users/eiriktsarpalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eiriktsarpalis/subscriptions","organizations_url":"https://api.github.com/users/eiriktsarpalis/orgs","repos_url":"https://api.github.com/users/eiriktsarpalis/repos","events_url":"https://api.github.com/users/eiriktsarpalis/events{/privacy}","received_events_url":"https://api.github.com/users/eiriktsarpalis/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T15:25:05Z","updated_at":"2015-07-01T15:25:05Z","body":"You're right, but it's still an issue worth reporting. I think the point here is that paket proper accepts this as valid configuration, therefore paket pack should do this as well."}}