{"action":"created","issue":{"url":"https://api.github.com/repos/ocaml/opam/issues/2142","labels_url":"https://api.github.com/repos/ocaml/opam/issues/2142/labels{/name}","comments_url":"https://api.github.com/repos/ocaml/opam/issues/2142/comments","events_url":"https://api.github.com/repos/ocaml/opam/issues/2142/events","html_url":"https://github.com/ocaml/opam/issues/2142","id":73331748,"number":2142,"title":"opam-depext not found with opam 1.2.1","user":{"login":"talex5","id":554131,"avatar_url":"https://avatars.githubusercontent.com/u/554131?v=3","gravatar_id":"","url":"https://api.github.com/users/talex5","html_url":"https://github.com/talex5","followers_url":"https://api.github.com/users/talex5/followers","following_url":"https://api.github.com/users/talex5/following{/other_user}","gists_url":"https://api.github.com/users/talex5/gists{/gist_id}","starred_url":"https://api.github.com/users/talex5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talex5/subscriptions","organizations_url":"https://api.github.com/users/talex5/orgs","repos_url":"https://api.github.com/users/talex5/repos","events_url":"https://api.github.com/users/talex5/events{/privacy}","received_events_url":"https://api.github.com/users/talex5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-05T14:33:18Z","updated_at":"2015-05-07T07:48:40Z","closed_at":null,"body":"`opam depext` is no longer working for me (using the 0install package):\r\n\r\n    $ 0install run --version=1.2.0 opam depext\r\n    # Detecting depexts using flags: x86_64 linux arch\r\n    # No extra OS packages requirements found.\r\n\r\n    $ 0install run --version=1.2.1 opam depext\r\n    opam: unknown command `depext'.\r\n    Usage: opam COMMAND ...\r\n    Try `opam --help' for more information.\r\n\r\n`strace`ing the two versions shows that 1.2.0 does:\r\n\r\n    [pid 10043] execve(\"/bin/sh\", [\"/bin/sh\", \"-c\", \"command -v opam-depext\"], [/* 41 vars */]) = 0\r\n\r\nwhile 1.2.1 does:\r\n\r\n    [pid 10326] stat(\"/home/tal/.cache/0install.net/implementations/sha256new_5UFFHTGKFG26KQFVJVKYB56WSAAX5IYV54HUQCTMEYTJJEBX7SOQ/bin/opam-depext\", 0x7ffcfc5aef60) = -1 ENOENT (No such file or directory)\r\n\r\nDoes opam expect opam-depext to be installed in the same directory as itself? But I can't imagine that happens even with a non-0install package. What's the correct behaviour here?"},"comment":{"url":"https://api.github.com/repos/ocaml/opam/issues/comments/99758207","html_url":"https://github.com/ocaml/opam/issues/2142#issuecomment-99758207","issue_url":"https://api.github.com/repos/ocaml/opam/issues/2142","id":99758207,"user":{"login":"talex5","id":554131,"avatar_url":"https://avatars.githubusercontent.com/u/554131?v=3","gravatar_id":"","url":"https://api.github.com/users/talex5","html_url":"https://github.com/talex5","followers_url":"https://api.github.com/users/talex5/followers","following_url":"https://api.github.com/users/talex5/following{/other_user}","gists_url":"https://api.github.com/users/talex5/gists{/gist_id}","starred_url":"https://api.github.com/users/talex5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talex5/subscriptions","organizations_url":"https://api.github.com/users/talex5/orgs","repos_url":"https://api.github.com/users/talex5/repos","events_url":"https://api.github.com/users/talex5/events{/privacy}","received_events_url":"https://api.github.com/users/talex5/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T07:48:40Z","updated_at":"2015-05-07T07:48:40Z","body":"It works with this change:\r\n\r\n    diff --git a/src/client/opamArg.ml b/src/client/opamArg.ml\r\n    index 7a8f0bd..34330b9 100644\r\n    --- a/src/client/opamArg.ml\r\n    +++ b/src/client/opamArg.ml\r\n    @@ -1980,7 +1980,7 @@ let check_and_run_external_commands () =\r\n\t   && List.for_all (fun (_,info) -> Term.name info <> name) commands\r\n\t then\r\n\t (* No such command, check if there is a matching plugin *)\r\n    -    let command = opam ^ \"-\" ^ name in\r\n    +    let command = \"opam-\" ^ name in\r\n\t let t = OpamState.load_env_state \"plugins\" in\r\n\t let env = OpamState.get_full_env ~force_path:false t in\r\n\t let env = Array.of_list (List.rev_map (fun (k,v) -> k^\"=\"^v) env) in\r\n"}}