cloudsmith/geppetto — Issue #215: Lack of version constraint must not be a constraint in itself
Author: thallgren
Created: 2011-10-21 16:18:14+00:00
State: open

Currently, a module dependency is considered unfulfilled if the dependency has no version constraint and the appointed module has a version. In my opinion, a lack of a constraint should mean "don't care" rather than "only care about those without versions".

This implies that the lack of version must be considered a version too ('0.0.0' is a good fit) so that the "best fit" can be determined. Consider the case where we have:

x without a version
x with version 1.0.0

In a dependency we want to appoint the x with no version. We can then write

dependency 'bob/x' '==0.0.0'

to appoint the former