From: Jean Privat Date: Mon, 8 Jun 2015 10:05:00 +0000 (-0400) Subject: Merge: Love contrib X-Git-Tag: v0.7.6~63 X-Git-Url: http://nitlanguage.org Merge: Love contrib One day, a package manager will simplify the installation and the maintenance of third-party projects, libraries and programs in Nit, so that `import foo` will import the project `foo` if installed. Noways, `contrib` is used as a placeholder for some independent projects that are not mainly a library (or borderline). However, the nature of the Nit language, especially the refinement of class blurry the difference between libraries and programs and make it conceivable to extends an existing program by refining it (or just reuse its base libraries). However, `import foo` will not work if foo is in contrib, this issue has two current workarounds: * the user use `-I` with some relative path location in the Makefile, that is not practical because it should be used on each tools thus broke basic manual commands (like nitc on the command line) and automatic commands (like vim+nitpick). * the project just move itself to lib/ so that client can easily import it, but this is hard to conceptualize for some project like `nitiwiki` The easy solution to solve this issue is to add `contrib` to the libpath. Note: the loader still has to be rewritten to be less buggy, more simple and saner. cf #1250 Pull-Request: #1436 Reviewed-by: Romain Chanoir Reviewed-by: Lucas Bajolet Reviewed-by: Alexandre Terrasa --- d52cb8ef4dd8aae4c84d3cae78bfe1bf95815ef0