Pruning modules

20 views
Skip to first unread message

Fredrik Ekholdt

unread,
Apr 12, 2013, 10:23:20 AM4/12/13
to adep...@googlegroups.com
In Ivy for example there you can choose which strategy it should use to check whether a version of a module is older or newer. 
This is the root cause of a lot of issues on Ivy.

I was wondering if it would be a good idea that a module in adept states which module it replaces. This way it would be deterministic how a module will act and it would support org/name changes as well. 

What do you guys think?

Fredrik Ekholdt

unread,
Apr 13, 2013, 6:54:47 AM4/13/13
to adep...@googlegroups.com
In retrospective I realize that defining the modules that replace other will break if you have different versions of stuff in different repositories. 
So, do we have to do this in the same as Ivy and compare version strings or do we do it some other way?

F

Mark Harrah

unread,
Apr 22, 2013, 3:14:26 PM4/22/13
to adep...@googlegroups.com
On Sat, 13 Apr 2013 03:54:47 -0700 (PDT)
Fredrik Ekholdt <fre...@gmail.com> wrote:

> In retrospective I realize that defining the modules that replace other
> will break if you have different versions of stuff in different
> repositories.
> So, do we have to do this in the same as Ivy and compare version strings or
> do we do it some other way?

My opinion/proposal was in my NEScala talk and in this thread:

https://groups.google.com/d/msg/adept-dev/sy3C_iLcags/-7CSHwkasW4J

The idea is similar to yours at a high level. We both want the producer to explicitly specify what is compatible instead of relying on an implied version structure and/or consumer-side version ranges. I proposed having compatibility be in explicit version attributes (see the proposal page and the other thread).

One problem was that if you have multiple version attributes, what does your path look like in the repository? However, if you have one file for all versions, you don't need a separate path for each version and that problem goes away.

-Mark
Reply all
Reply to author
Forward
0 new messages