firstdraft / appdev_template

A Rails template for generating homework projects
0 stars 1 forks source link

ActionView dependency bundling errors #168

Closed raghubetina closed 3 years ago

raghubetina commented 4 years ago

Right now when I create a new app with the template, I get a series of dependency issues when bundleing:

Bundler could not find compatible versions for gem "actionview":
  In snapshot (Gemfile.lock):
    actionview (= 6.0.3)

  In Gemfile:
    dotenv-rails was resolved to 2.7.5, which depends on
      railties (>= 3.2, < 6.1) was resolved to 6.0.3, which depends on
        actionpack (= 6.0.3) was resolved to 6.0.3, which depends on
          actionview (= 6.0.3)

    rails (~> 6.0.3, >= 6.0.3.2) was resolved to 6.0.3.2, which depends on
      actionview (= 6.0.3.2)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

I think this is because, in the Gemfile, there is:

gem 'rails', '~> 6.0.3', '>= 6.0.3.2'

Why the two different version directives? Perhaps it should only have '~> 6.0.3'?

jelaniwoods commented 3 years ago

@raghubetina I'm not able to reproduce this error. When I generate a new application it bundles without issue.

As for the rails version directives, this was also the case for photogram-final

This also appears to happen when I just do a regular rails new.