wycats / bundler

407 stars 30 forks source link

Implicit dependencies are not idempotent #144

Closed vandrijevik closed 10 years ago

vandrijevik commented 14 years ago

Perhaps I am amiss here, but it seems that running gem bundle twice with the following Gemfile is not idempotent:

clear_sources
bundle_path "vendor/bundler_gems"

source "http://gemcutter.org"
source "http://gems.github.com"

gem "eycap",                "0.5.1"

When I ran gem bundle the first time, dependencies were resolved, downloaded and installed. Among them was capistrano version 2.5.10. Recently, capistrano 2.5.11 was released, and even though the bundled version satisfies the dependencies, running gem bundle again results in:

Calculating dependencies...
Updating source: http://gemcutter.org
Updating source: http://gems.github.com
Downloading capistrano-2.5.11.gem
Installing capistrano (2.5.11)
Deleting gem: capistrano (2.5.10)
Done.

Is this expected when running gem bundle without any command arguments? I was under the impression that only gem bundle --update would try to find a newer version that satisfies the dependencies.

vandrijevik commented 14 years ago

Any word on whether this is a bug or a feature?