From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 7A3127F6CC for ; Tue, 3 Feb 2015 21:01:51 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of dario.teixeira@nleyten.com) identity=pra; client-ip=217.70.183.196; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="dario.teixeira@nleyten.com"; x-sender="dario.teixeira@nleyten.com"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of dario.teixeira@nleyten.com) identity=mailfrom; client-ip=217.70.183.196; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="dario.teixeira@nleyten.com"; x-sender="dario.teixeira@nleyten.com"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@relay4-d.mail.gandi.net) identity=helo; client-ip=217.70.183.196; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="dario.teixeira@nleyten.com"; x-sender="postmaster@relay4-d.mail.gandi.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BNAQBPKNFUnMS3Rtlag1hZBIJ9wgGHGkMBAQEBAREBAQEBAQYNCQkULoQ2FVUhAiYCXxuIKbB/j0iWcoEhkUaBQQWEFY5Fg1+DEI4LgzsCgWcMAYIcb4FEfgEBAQ X-IPAS-Result: A0BNAQBPKNFUnMS3Rtlag1hZBIJ9wgGHGkMBAQEBAREBAQEBAQYNCQkULoQ2FVUhAiYCXxuIKbB/j0iWcoEhkUaBQQWEFY5Fg1+DEI4LgzsCgWcMAYIcb4FEfgEBAQ X-IronPort-AV: E=Sophos;i="5.09,514,1418079600"; d="scan'208";a="98737358" Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 03 Feb 2015 21:01:50 +0100 Received: from mfilter28-d.gandi.net (mfilter28-d.gandi.net [217.70.178.159]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 83D1317207C for ; Tue, 3 Feb 2015 21:01:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter28-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter28-d.gandi.net (mfilter28-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id wVXPMbKBrZRS for ; Tue, 3 Feb 2015 21:01:49 +0100 (CET) X-Originating-IP: 10.58.1.142 Received: from webmail.gandi.net (unknown [10.58.1.142]) (Authenticated sender: dario.teixeira@nleyten.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPA id 0FA55172089 for ; Tue, 3 Feb 2015 21:01:48 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 03 Feb 2015 20:01:48 +0000 From: Dario Teixeira To: caml-list Message-ID: <281f21387ba38386a63301a18f46392e@nleyten.com> X-Sender: dario.teixeira@nleyten.com User-Agent: Roundcube Webmail/0.9.5 Subject: [Caml-list] Obtaining module dependencies from within OCamlbuild plugin Hi, I'm trying to manipulate a project's dependencies from within an OCamlbuild plugin, and one prerequisite is obtaining the current set of dependencies for a given module. For instance, to obtain the set of dependencies for module "src/foo_c.ml", one could expect to invoke the following from within the After_rules hook of myocamlbuild.ml: Command.deps_of_tags (tags_of_pathname "src/foo_c.ml") This always returns an empty list, however. The same holds if one tries to narrow the list of tags to just the filename: Command.deps_of_tags (Tags.of_list ["file:src/foo_c.ml"]) One possible explanation for this behaviour is that the set of dependencies has not been computed yet when the After_rules hook is invoked. Is that the case, or am I missing something altogether different? Either way, how do I obtain the set of dependencies? Thanks in advance for your attention! Kind regards, Dario Teixeira