miyagawa/carton — Issue #41: carton fails to update dependencies when the versions in the carton.lock change
Author: wchristian
Created: 2012-03-06 16:20:06+00:00
State: open

In this repository i've recorded the steps detailing how this error manifests: https://github.com/wchristian/carton-dep-fail-demonstration/network

In short: If i have version X of a module in my local dir and that module is a dependency of another module in the carton tree, then carton will not do anything if the version of that module is changed to X+1 in carton.lock and `carton install` is executed.

Looking at the code this seems to be because carton install *only* tries to install the modules identified by `carton tree` as non-dependency modules.

I'm not sure why this is, but it's a *serious* problem when a module my code uses directly is also a dependency of another module used by my code. Currently the only workaround is to delete the local directory and reinstall everything to make sure updates happen.