From gabriel.scherer at gmail.com Tue Mar 7 15:42:55 2017 From: gabriel.scherer at gmail.com (Gabriel Scherer) Date: Tue, 7 Mar 2017 10:42:55 -0500 Subject: [opam-devel] Feature request to get correct dependencies: build this pin in a fresh local root Message-ID: Dear opam-devel, As for previous OCaml releases, I am going through existing OCaml package to see what breaks in 4.05.0 to understand which parts of the ecosystem have to be upgraded early to provide a good user-experience at release time, and to find regressions in the compiler distribution. As I go over the invaluable opam-builder output ( http://opam.ocamlpro.com/builder/html/report-full.html ), I often find packages that have incorrect metadata, independently of 4.05.0, and I try to fix those when possible. Ideally, I think we should have no broken build in opam-builder all -- for example, broken packages create more work for me when triaging the build outputs of a new ocamlbuild version. I find that *surprisingly many* opam packages have incorrect dependencies specified: they miss a lot of dependencies in the opam file. In retrospect, this is not very surprising: programmers test their software in their working OPAM switches, which already have these dependencies installed (obviously to work on the software itself, but also because they tend to work with other projects that already depend on those; so asking a colleague to install the software on their own machine, for example, will not catch these missing dependencies as colleagues have correlated installed package sets). It would be very nice if it was easy to ask opam to build a given local package / pin in a fresh, local, empty opam root. This would immediately catch these missing-dependencies problem, and it could be something we encourage packager to do after "opam lint" has succeeded. (This does not necessarily need to be a hardcoded opam feature, a simple script may do. I suppose that the way to do this also differs on opam 1.x and opam 2.x). Relatedly, I think that this phenomenon of correlated-dependencies can explain why certain kinds of Continuous Integration are more effective than others at catching those: opam-builder is very good at this, as it always build packages in an empty environment (this is made by cleverly caching builds to avoid rebuilding dependencies in that case), while the datakit CI on the opam-repository is not doing such a good job at detecting this specific issue, because it tends to test packages changes by update actions on top of an existing repository -- this difference is good as it means that datakit will exercise other update paths and scenarios, and catch other kind of issues. -------------- next part -------------- An HTML attachment was scrubbed... URL: From 374698133 at qq.com Wed Mar 8 05:43:36 2017 From: 374698133 at qq.com (=?gb18030?B?yMvA4LXEusPF89PRLiAgIA==?=) Date: Wed, 08 Mar 2017 05:43:36 -0000 Subject: [opam-devel] Deserving for help on opam Message-ID: ------------------ ???? ------------------ ???: "374698133";<374698133 at qq.com>; ????: 2017?3?8?(???) ??2:20 ???: "contact"; ??: Deserving for help on opam hi there,i am a student from NJU China,I'm sorry for my poor English.... i'm doing a graduation project on "redexer",a android tool requring OPAM PACKAGES,but i have met a lot of problems when using "opam install", it just report META file missing like the picture mirrors. I got the same problem when i use OS X runing ocamlfind install ,i checked the conf and find that the meta file is just there in the default dictionary. I have been caught in this problem for about two weeks, I really want someone to help me out... Maybe I can install the package without using opam install ,but i just don't know how to do it,you can also tell me about this. thankyou a sad man,2017.3.8 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 67B9E4B6 at 6DD7AB0B.A9A3BF58 Type: application/octet-stream Size: 46276 bytes Desc: not available URL: From daniel.buenzli at erratique.ch Thu Mar 30 10:00:21 2017 From: daniel.buenzli at erratique.ch (=?utf-8?Q?Daniel_B=C3=BCnzli?=) Date: Thu, 30 Mar 2017 11:00:21 +0200 Subject: [opam-devel] Deserving for help on opam In-Reply-To: References: Message-ID: <70616EB2AAAF4F0D864DEF9F432A6FB4@erratique.ch> On Wednesday, 8 March 2017 at 07:24, ??????. wrote: > I got the same problem when i use OS X runing ocamlfind install ,i checked the conf and find that the meta file is just there in the default dictionary. > I have been caught in this problem for about two weeks, I really want someone to help me out... What is the exact opam invocation you are using ? Yojson installs fine here. Maybe try to do: opam update opam install yojson Also could you please report the output of: opam config report (please don't send images, cut and paste the output text) Best, Daniel