{"action":"created","issue":{"url":"https://api.github.com/repos/ocaml/opam/issues/2365","labels_url":"https://api.github.com/repos/ocaml/opam/issues/2365/labels{/name}","comments_url":"https://api.github.com/repos/ocaml/opam/issues/2365/comments","events_url":"https://api.github.com/repos/ocaml/opam/issues/2365/events","html_url":"https://github.com/ocaml/opam/issues/2365","id":119070127,"number":2365,"title":"opam pin add --dev doesn't update opam data properly","user":{"login":"Drup","id":801124,"avatar_url":"https://avatars.githubusercontent.com/u/801124?v=3","gravatar_id":"","url":"https://api.github.com/users/Drup","html_url":"https://github.com/Drup","followers_url":"https://api.github.com/users/Drup/followers","following_url":"https://api.github.com/users/Drup/following{/other_user}","gists_url":"https://api.github.com/users/Drup/gists{/gist_id}","starred_url":"https://api.github.com/users/Drup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drup/subscriptions","organizations_url":"https://api.github.com/users/Drup/orgs","repos_url":"https://api.github.com/users/Drup/repos","events_url":"https://api.github.com/users/Drup/events{/privacy}","received_events_url":"https://api.github.com/users/Drup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-26T15:59:09Z","updated_at":"2015-12-01T02:05:44Z","closed_at":null,"body":"It seems like `opam pin add <foo> --dev` and `opam pin add <foo> <foo-repo>` don't do the same. The first on doesn't properly update opam information based on the opam file in the repository."},"comment":{"url":"https://api.github.com/repos/ocaml/opam/issues/comments/160824928","html_url":"https://github.com/ocaml/opam/issues/2365#issuecomment-160824928","issue_url":"https://api.github.com/repos/ocaml/opam/issues/2365","id":160824928,"user":{"login":"AltGr","id":807966,"avatar_url":"https://avatars.githubusercontent.com/u/807966?v=3","gravatar_id":"","url":"https://api.github.com/users/AltGr","html_url":"https://github.com/AltGr","followers_url":"https://api.github.com/users/AltGr/followers","following_url":"https://api.github.com/users/AltGr/following{/other_user}","gists_url":"https://api.github.com/users/AltGr/gists{/gist_id}","starred_url":"https://api.github.com/users/AltGr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AltGr/subscriptions","organizations_url":"https://api.github.com/users/AltGr/orgs","repos_url":"https://api.github.com/users/AltGr/repos","events_url":"https://api.github.com/users/AltGr/events{/privacy}","received_events_url":"https://api.github.com/users/AltGr/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T02:05:44Z","updated_at":"2015-12-01T02:05:44Z","body":"I think the update of the opam information must have failed for a different reason: it's really the same code in both cases, and the same call to `OpamState.update_pinned_package` should have taken place.\r\n\r\nI'd be glad if you could gather some more information on this..."}}