Rake tasks on 3.1 complain that dependencies are not met #1852

Closed
mchung opened this Issue Jun 24, 2011 · 3 comments

Projects

None yet

3 participants

Contributor
mchung commented Jun 24, 2011

Occasionally my rails-3.1 project will complain that dependencies aren't met. For example:

$ rake db:migrate
Could not find git-1.2.5 in any of the sources

My app doesn't depend on git, but I add it in to the Gemfile anyway run db:migrate again and...

Could not find jeweler-1.6.2 in any of the sources

Which is strange because it appears that rake is picking up the dependencies for my gems.

To fix this, I empty the gemset, reinstall Bundler, and run bundle install again.

$ rake db:migrate
... works ...

It seems like some combination of installed gems on my system is creating this buggy behaviour. Does anyone have any insight into what's happening?

Owner
fxn commented Jun 25, 2011

Have you tried bundle exec? Do you have the last bundler installed?

Contributor
mchung commented Jun 25, 2011

Running bundler (1.0.15). Will attempt bundle exec the next time it occurs.

@jake3030 jake3030 pushed a commit to jake3030/rails that referenced this issue Jun 28, 2011
@eparreno @lifo eparreno + lifo Add index length support for MySQL [#1852 state:resolved]
Example:

  add_index(:accounts, :name, :name => 'by_name', :length => 10)
  => CREATE INDEX by_name ON accounts(name(10))

  add_index(:accounts, [:name, :surname], :name => 'by_name_surname', :length => {:name => 10, :surname => 15})
  => CREATE INDEX by_name_surname ON accounts(name(10), surname(15))

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
5b95730
@jake3030 jake3030 pushed a commit to jake3030/rails that referenced this issue Jun 28, 2011
@josevalim josevalim Revert "Add index length support for MySQL [#1852 state:open]"
This commit breaks dumping a few tables, as the sessions table.
To reproduce, just create a new application and:

  rake db:sessions:create
  rake db:migrate
  rake db:test:prepare

And then look at the db/schema.rb file (ht: Sam Ruby).

This reverts commit 5b95730.
6626833
@jake3030 jake3030 pushed a commit to jake3030/rails that referenced this issue Jun 28, 2011
@lifo lifo Revert "Revert "Add index length support for MySQL [#1852 state:open]""
This reverts commit 6626833.
8d2f6c1
@svenfuchs svenfuchs pushed a commit to svenfuchs/rails that referenced this issue Jul 2, 2011
@eparreno @lifo eparreno + lifo Add index length support for MySQL [#1852 state:resolved]
Example:

  add_index(:accounts, :name, :name => 'by_name', :length => 10)
  => CREATE INDEX by_name ON accounts(name(10))

  add_index(:accounts, [:name, :surname], :name => 'by_name_surname', :length => {:name => 10, :surname => 15})
  => CREATE INDEX by_name_surname ON accounts(name(10), surname(15))

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
3616141
@svenfuchs svenfuchs pushed a commit to svenfuchs/rails that referenced this issue Jul 2, 2011
Carl Lerche Revert "Add index length support for MySQL [#1852 state:resolved]" (b…
…reaks the build)

This reverts commit 3616141.
eababa3
@svenfuchs svenfuchs pushed a commit to svenfuchs/rails that referenced this issue Jul 2, 2011
@lifo lifo Revert "Revert "Add index length support for MySQL [#1852 state:resol…
…ved]" (breaks the build)"

This reverts commit eababa3.
77adb4b
Owner

If it's an issue seems more like a Bundler thing.
Feel free to provide more data and we will reopen.

@spastorino spastorino closed this Jul 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment