[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Version control systems
- From: Asko Kauppi <askok@...>
- Date: Wed, 13 Aug 2008 22:59:04 +0300
I indeed plan to go this route with fink packaging.
In addition to 'luarocks' package, there will be others s.a. 'luarocks-
lanes' that just pull in Lanes to the central, system wide Rocks
Users installing Rocks via 'luarocks install' will instead get them on
a user level repo, but they won't need 'sudo' rights either.
I still don't really see the value in having multiple versions at
once. I do see value in having multiple repos (which can have
different versions, but only one within repo of a certain module). But
don't start a flame; I'll be quiet. :)
Yuri Takhteyev kirjoitti 13.8.2008 kello 21:20:
a dynamic language. LuaRocks works in a way that rpm/deb/etc. can't:
it resolves dependency versions at require() time, and is designed to
allow multiple coexisting versions of packages transparently.
In addition to this, LuaRocks works very well as "embedded" package
repository that an application can use to manage plugins. That is, my
application can set up its own _private_ LuaRocks repository that it
doesn't have to share with anyone. The repository is neither
system-wide nor local, but belongs to the application. It's all
contained in a single directory, and if you later decide to "unstall"
my app, all you need to do is delete the directory. For an
application extension language, this seems like a great feature.
Additionally, LR makes it practical to break up an application into a
bunch of small plugins, minimizing the dependencies for the "basic"
Sputnik  is not a large project, but some of the functionality that
people have wanted requires installing things like database bindings,
etc. We handle this by breaking Sputnik up into two dozen rocks.
Most of those rocks provide optional functionality that most users
won't need. Most of them are also tiny (a couple hundred lines of
code), but they pull in dependencies. This lets us avoid installing
those dependencies by default. For instance, the basic sputnik
installation does not require luasql. However, if you want to store
your data in a database, say MySQL, then you can do so by just running
"luarocks install versium-mysql" which will take care of the
dependencies. This in theory can be replicated with platform-specific
package managers, but it would require breaking things up into smaller
packages than seems to be customary with those systems. At least,
I remember this coming up as an issue when we discussed packaging
Sputnik for debian.
That said, it would be great to have more (optional) integration with
platform-specific package managers. For instance, it would be good to
be able to specify dependencies on packages installed with apt-get,