{"action":"created","issue":{"url":"https://api.github.com/repos/ocaml/opam/issues/2779","repository_url":"https://api.github.com/repos/ocaml/opam","labels_url":"https://api.github.com/repos/ocaml/opam/issues/2779/labels{/name}","comments_url":"https://api.github.com/repos/ocaml/opam/issues/2779/comments","events_url":"https://api.github.com/repos/ocaml/opam/issues/2779/events","html_url":"https://github.com/ocaml/opam/issues/2779","id":194794167,"number":2779,"title":"opam-version line is wrong for converted files","user":{"login":"agarwal","id":112173,"avatar_url":"https://avatars.githubusercontent.com/u/112173?v=3","gravatar_id":"","url":"https://api.github.com/users/agarwal","html_url":"https://github.com/agarwal","followers_url":"https://api.github.com/users/agarwal/followers","following_url":"https://api.github.com/users/agarwal/following{/other_user}","gists_url":"https://api.github.com/users/agarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/agarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agarwal/subscriptions","organizations_url":"https://api.github.com/users/agarwal/orgs","repos_url":"https://api.github.com/users/agarwal/repos","events_url":"https://api.github.com/users/agarwal/events{/privacy}","received_events_url":"https://api.github.com/users/agarwal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-10T21:07:24Z","updated_at":"2016-12-22T15:58:50Z","closed_at":"2016-12-22T09:07:12Z","body":"I added [Jane Street's opam repo](https://github.com/janestreet/opam-repository.git), which has files in 1.2 format. I'm running opam 2.0~alpha5. To investigate some issue I wanted to see how opam is treating the opam file for a package from this repo. So I did this:\r\n\r\n```\r\n$ opam info ppx_sexp_conv.114.10+84 --raw\r\nopam-version: \"1.2\"\r\n...\r\n```\r\n\r\nThe file that is printed is in the new format, so shouldn't this say \"2.0\"."},"comment":{"url":"https://api.github.com/repos/ocaml/opam/issues/comments/268829556","html_url":"https://github.com/ocaml/opam/issues/2779#issuecomment-268829556","issue_url":"https://api.github.com/repos/ocaml/opam/issues/2779","id":268829556,"user":{"login":"agarwal","id":112173,"avatar_url":"https://avatars.githubusercontent.com/u/112173?v=3","gravatar_id":"","url":"https://api.github.com/users/agarwal","html_url":"https://github.com/agarwal","followers_url":"https://api.github.com/users/agarwal/followers","following_url":"https://api.github.com/users/agarwal/following{/other_user}","gists_url":"https://api.github.com/users/agarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/agarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agarwal/subscriptions","organizations_url":"https://api.github.com/users/agarwal/orgs","repos_url":"https://api.github.com/users/agarwal/repos","events_url":"https://api.github.com/users/agarwal/events{/privacy}","received_events_url":"https://api.github.com/users/agarwal/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T15:58:50Z","updated_at":"2016-12-22T15:58:50Z","body":"> the file hasn't really been converted (no translation of `available: ocaml-version` to `depends: \"ocaml\"`, etc.)\r\n\r\nIf the printout is in 1.2 format, then of course there is no error. However I'm certain this constraint was converted to 2.0 format, but unfortunately I can't reproduce that now. I'll add information if I manage to hit the issue again."}}
{"actor":{"display_login":"agarwal"}}