<br><div class="gmail_quote">On Tue, Jul 27, 2010 at 7:06 PM, Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu">robby@eecs.northwestern.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I guess the idea is that you'd eliminate the syntactic difference<br>
between a planet-located library and one in the distribution and then<br>
require on some external source to know where the package is located?<br>
Something like that? How would that work?<font class="Apple-style-span" color="#888888"><br></font></blockquote><div><br></div><div>Hi Robby - there are a lot of ways to go about doing this; Jay pointed to some ideas. </div>
<div><br></div><div>Here's one KISS approach without major changes (assuming the syntax have been unified): </div><div><br></div><div>Modify the module path resolver so that it does the following lookup for non-versioned require specs: </div>
<div><ol><li>try lookup the package in COLLECTS </li><li>if #1 fails, lookup the package in planet cache </li><li>if #2 fails, lookup the package in planet repo </li></ol><div>For the versioned specs, you can skip the collects step above since it is currently not versioned. But of course you can also change collects to become versionable in the future if you wish to re-architect the system. </div>
</div><div><br></div><div>Cheers,</div><div>yc</div><div><br></div><div><br></div></div>