rubygems / bundler

Manage your Ruby application's gem dependencies
https://bundler.io
MIT License
4.88k stars 2k forks source link

bundler 1.15.x ignores require: false #6111

Closed TheWudu closed 6 years ago

TheWudu commented 6 years ago

Hi,

I experienced issues with bundler 1.15.x which are not there in 1.14.6. I start one service in the test-environment but without the test-gems installed (yes a bit weird,..) and we configured it in the Gemfile like this:

group :development, :test do
  gem "foreman", require: false
  gem "guard-rspec", require: false
  gem "guard-rubocop", require: false
 ... 
end

When I start the service with bundler 1.14.6, everything is fine. If I upgrade to 1.15.x (tried it with .1 to .4), I get this error message:

org.jruby.rack.RackInitializationException: Unable to find a spec satisfying foreman java in the set. Perhaps the lockfile is corrupted?

foreman is NOT a dependency of any other gem we have in the file, so I would just expect it to be ignored (require: false) as with 1.14.6.

Any hints?

segiddins commented 6 years ago

Please share the output of ‘bundle env’, thanks!

TheWudu commented 6 years ago
Bundler   1.15.4
Rubygems  2.6.13
Ruby      2.3.3p0 (2017-09-06 revision 56859) [java]
GEM_HOME  /home/samples/.rvm/gems/jruby-9.1.13.0@samples
GEM_PATH  /home/samples/.rvm/gems/jruby-9.1.13.0@samples:/home/samples/.rvm/gems/jruby-9.1.13.0@global
RVM       1.26.11 (master)
Git       1.9.1
Platform  universal-java-1.7
OpenSSL   JRuby-OpenSSL 0.9.21
rubygems-bundler (1.4.4)

vs

Bundler   1.14.6
Rubygems  2.6.13
Ruby      2.3.3p0 (2017-09-06 revision 56859) [java]
GEM_HOME  /home/samples/.rvm/gems/jruby-9.1.13.0@samples
GEM_PATH  /home/samples/.rvm/gems/jruby-9.1.13.0@samples:/home/samples/.rvm/gems/jruby-9.1.13.0@global
RVM       1.26.11 (master)
Git       1.7.9.5
Platform  universal-java-1.7
rubygems-bundler (1.4.4)
colby-swandale commented 6 years ago

Please attach the full output of bundle env

TheWudu commented 6 years ago

$ bundle env The latest bundler is 1.16.0.pre.3, but you are currently running 1.15.4. To update, run gem install bundler --pre

Environment

Bundler   1.15.4
Rubygems  2.6.13
Ruby      2.3.3p0 (2017-09-06 revision 56859) [java]
GEM_HOME  /home/samples/.rvm/gems/jruby-9.1.13.0@samples
GEM_PATH  /home/samples/.rvm/gems/jruby-9.1.13.0@samples:/home/samples/.rvm/gems/jruby-9.1.13.0@global
RVM       1.26.11 (master)
Git       1.9.1
Platform  universal-java-1.7
OpenSSL   JRuby-OpenSSL 0.9.21
rubygems-bundler (1.4.4)

Bundler settings

enterprise.contribsys.com
  Set for the current user (/home/samples/.bundle/config): "<removed>"
frozen
  Set for your local app (/home/samples/apps/samples/releases/20171010123342/.bundle/config): true
path
  Set for your local app (/home/samples/apps/samples/releases/20171010123342/.bundle/config): "/home/samples/apps/samples/shared/bundle"
bin
  Set for your local app (/home/samples/apps/samples/releases/20171010123342/.bundle/config): "bin"
shebang
  Set for your local app (/home/samples/apps/samples/releases/20171010123342/.bundle/config): "ruby-local-exec"
without
  Set for your local app (/home/samples/apps/samples/releases/20171010123342/.bundle/config): "development:test"
disable_shared_gems
  Set for your local app (/home/samples/apps/samples/releases/20171010123342/.bundle/config): true

Gemfile

Gemfile

source "https://rubygems.org"
gem "bundler", "~> 1.12", require: false

#
# trinidad
#
platform :jruby do
  gem "jruby-rack", "~> 1.1.20"
  gem "trinidad_init_services", "1.2.3"
  gem "trinidad_jars", "~> 1.4.0"
end
gem "puma"

#
# web-framework related
#
gem "racksh", git: "https://github.com/runtastic/racksh"
gem "sinatra", require: "sinatra/base"
gem "sinatra-advanced-routes", require: "sinatra/advanced_routes"
gem "sinatra-contrib"
gem "sinatra-cross_origin"
gem "sinatra-param"

#
# Runtastic gems and dependencies
#
gem "actionmailer", "~> 4.2.7.1", require: "action_mailer"
gem "activesupport", "~> 4.2.7.1", require: "active_support"

gem "net-ssh", "~> 2.9.2"
gem "net-ssh-gateway", "~> 1.2.0"

source "http://gems.runtastic.com" do
  gem "messages", "~> 4.2"
  gem "repository-lock"
  gem "rt_fixtures", "~>1.1.0", require: false
  gem "trace_coder", "~> 1.0"
  group :development do
    gem "rt_deploy", "~> 1.14", require: false
  end

  gem "authority", "~> 3.0.3"

  gem "elevation"
  gem "live_tracking_api", "~> 1.0"
  gem "new_relic_wrapper", "> 1.4"
  gem "notifier", "~> 1.0.8"
  gem "plausibility_checker", "~> 1.0.4"
  gem "restore", "~> 3.0.5"
  gem "rt-extensions", "~> 1.0"
  gem "rt_request_logger", "~> 0.4"
  gem "tzwhere", "~> 0.4.1"
  # as dependency
  gem "attributes", "~> 2.0"
  gem "fastest_paths", "~> 0.1.0"
  gem "service", "~> 0.2.0"
  gem "social_tools", "~> 6.2.6"
end

gem "receptacle", "~> 0.3"
# underwire for v3 code =====

#
# Validations
#
gem "dry-struct", "~> 0.1"
gem "dry-validation", "~> 0.11.0"

source "http://gems.runtastic.com" do
  gem "data_transfer_object"
  gem "dry_time_formatter", "~> 0.2"
  gem "transaction_flow", "~> 0.6"
end

gem "request_handler", "~> 0.13"

# ===========================

gem "active_model_serializers", git: "https://github.com/runtastic/active_model_serializers"
gem "jrjackson", platform: :jruby
gem "jsonapi-rb", "~> 0.1.2"
gem "legacy_serializer", git: "https://github.com/runtastic/legacy_serializer", tag: "v0.10.3.pre"
gem "multi_json"
gem "oj", platform: :ruby

#
# Database
#
platform :jruby do
  gem "activerecord-jdbc-adapter"
  gem "activerecord-jdbcmysql-adapter"
end

platform :ruby do
  gem "activerecord", "~> 4.2.7.1", require: "active_record"
  gem "mysql2", "~> 0.3.18"
end
# needed by Makara because Rails constant is defined:
gem "makara", "~> 0.3.8"
gem "railties", "~> 4.2.7.1", require: "rails/railtie"

gem "mongo", "~> 2.4"
gem "paranoia", " ~> 2.0"

#
# testing
#
group :development, :test do
  gem "foreman", require: false
  gem "guard-rspec", require: false
  gem "guard-rubocop", require: false
  gem "json_spec"
  gem "parallel_tests", require: false
  gem "pry"
  gem "pry-byebug", platform: :ruby
  gem "rake"
  gem "rt_rubocop_defaults", "~> 1.0", require: false
  gem "rubocop-rspec", "~>1.10", require: false
  gem "rubocop_runner", "~> 2.0", require: false
end

group :test do
  gem "approvals"
  gem "database_cleaner"
  gem "factory_girl", require: false
  gem "fuubar"
  gem "rack-test"
  gem "rspec", "~> 3.4"
  gem "rspec-collection_matchers"
  gem "rspec-its"
  gem "rspec-sidekiq", "~>2.1"
  gem "simplecov", require: false
  gem "webmock"
end

gem "timecop", require: false

source "https://enterprise.contribsys.com/" do
  gem "sidekiq-ent", "~> 1.4"
end
gem "redis-namespace"

#
# common gems always used
#
gem "awesome_print"
gem "confstruct"
gem "connection_pool"
gem "dotenv"
gem "faraday"
gem "gzip"

gem "coercible", git: "https://github.com/runtastic/coercible", branch: "performance_improvments"
gem "equalizer"
gem "json_schema"
gem "nokogiri", "~> 1.8.1"
gem "virtus"

#
# locking
#
gem "zk", "~>1.9"

#
# monitoring
#
gem "health_monitor", git: "https://github.com/runtastic/health_monitor"

Gemfile.lock

GIT
  remote: https://github.com/runtastic/active_model_serializers
  revision: d6b51e2ff59dad61266ee63b4c32d758839c2267
  specs:
    active_model_serializers (0.10.0.rc1)
      activemodel (>= 4.0)

GIT
  remote: https://github.com/runtastic/coercible
  revision: bde5c3bf56a86b3106a2663f2dcde4e194295dcc
  branch: performance_improvments
  specs:
    coercible (1.0.1)
      descendants_tracker (~> 0.0.1)

GIT
  remote: https://github.com/runtastic/health_monitor
  revision: ef2e1a72dd2d3337b041ef759b60cef3b0e45ab6
  specs:
    health_monitor (0.6.1)

GIT
  remote: https://github.com/runtastic/legacy_serializer
  revision: a31a56a45c9584b822fe36e6190a49d631619a77
  tag: v0.10.3.pre
  specs:
    legacy_serializer (0.10.2.pre)
      activemodel (>= 4.0)

GIT
  remote: https://github.com/runtastic/racksh
  revision: 62e88879d03b4e8e6c0cf70ac6f8f9b66fd9aa9f
  specs:
    racksh (1.0.0)
      rack (>= 1.0)
      rack-test (>= 0.5)

GEM
  remote: https://rubygems.org/
  remote: http://gems.runtastic.com/
  remote: https://enterprise.contribsys.com/
  specs:
    actionmailer (4.2.7.1)
      actionpack (= 4.2.7.1)
      actionview (= 4.2.7.1)
      activejob (= 4.2.7.1)
      mail (~> 2.5, >= 2.5.4)
      rails-dom-testing (~> 1.0, >= 1.0.5)
    actionpack (4.2.7.1)
      actionview (= 4.2.7.1)
      activesupport (= 4.2.7.1)
      rack (~> 1.6)
      rack-test (~> 0.6.2)
      rails-dom-testing (~> 1.0, >= 1.0.5)
      rails-html-sanitizer (~> 1.0, >= 1.0.2)
    actionview (4.2.7.1)
      activesupport (= 4.2.7.1)
      builder (~> 3.1)
      erubis (~> 2.7.0)
      rails-dom-testing (~> 1.0, >= 1.0.5)
      rails-html-sanitizer (~> 1.0, >= 1.0.2)
    active_attr (0.8.5)
      activemodel (>= 3.0.2, < 5.0)
      activesupport (>= 3.0.2, < 5.0)
    activejob (4.2.7.1)
      activesupport (= 4.2.7.1)
      globalid (>= 0.3.0)
    activemodel (4.2.7.1)
      activesupport (= 4.2.7.1)
      builder (~> 3.1)
    activerecord (4.2.7.1)
      activemodel (= 4.2.7.1)
      activesupport (= 4.2.7.1)
      arel (~> 6.0)
    activerecord-jdbc-adapter (1.3.23)
      activerecord (>= 2.2, < 5.0)
    activerecord-jdbcmysql-adapter (1.3.23)
      activerecord-jdbc-adapter (~> 1.3.23)
      jdbc-mysql (>= 5.1.22)
    activesupport (4.2.7.1)
      i18n (~> 0.7)
      json (~> 1.7, >= 1.7.7)
      minitest (~> 5.1)
      thread_safe (~> 0.3, >= 0.3.4)
      tzinfo (~> 1.1)
    addressable (2.4.0)
    algorithms (0.6.1)
    algorithms (0.6.1-java)
    amq-protocol (2.1.0)
    approvals (0.0.22)
      nokogiri (~> 1.6)
      thor (~> 0.18)
    arel (6.0.4)
    ast (2.3.0)
    attributes (2.0.1)
      equalizer
      virtus
    authority (3.0.3)
      social_tools
    awesome_print (1.7.0)
    axiom-types (0.1.1)
      descendants_tracker (~> 0.0.4)
      ice_nine (~> 0.11.0)
      thread_safe (~> 0.3, >= 0.3.1)
    backports (3.6.8)
    bson (4.2.1)
    bson (4.2.1-java)
    builder (3.2.3)
    bunny (2.6.3)
      amq-protocol (>= 2.0.1)
    byebug (8.2.2)
    capistrano (2.15.9)
      highline
      net-scp (>= 1.0.0)
      net-sftp (>= 2.0.0)
      net-ssh (>= 2.0.14)
      net-ssh-gateway (>= 1.1.0)
    capistrano-ext (1.2.1)
      capistrano (>= 1.0.0)
    cassandra (0.23.0)
      json
      rake
      simple_uuid (~> 0.3)
      thrift_client (~> 0.7, < 0.9)
    coderay (1.1.1)
    colored (1.2)
    concurrent-ruby (1.0.5)
    concurrent-ruby (1.0.5-java)
    confstruct (1.0.2)
      hashie (~> 3.3)
    connection_pool (2.2.1)
    crack (0.4.3)
      safe_yaml (~> 1.0.0)
    dalli (2.7.6)
    data_transfer_object (1.1.0)
    database_cleaner (1.5.3)
    descendants_tracker (0.0.4)
      thread_safe (~> 0.3, >= 0.3.1)
    diff-lcs (1.2.5)
    docile (1.1.5)
    domain_name (0.5.20160826)
      unf (>= 0.0.5, < 1.0.0)
    dotenv (2.1.0)
    dry-configurable (0.7.0)
      concurrent-ruby (~> 1.0)
    dry-container (0.6.0)
      concurrent-ruby (~> 1.0)
      dry-configurable (~> 0.1, >= 0.1.3)
    dry-core (0.3.1)
      concurrent-ruby (~> 1.0)
    dry-equalizer (0.2.0)
    dry-logic (0.4.1)
      dry-container (~> 0.2, >= 0.2.6)
      dry-core (~> 0.2)
      dry-equalizer (~> 0.2)
    dry-struct (0.3.1)
      dry-configurable (~> 0.1)
      dry-core (~> 0.3)
      dry-equalizer (~> 0.2)
      dry-types (~> 0.9, >= 0.9.0)
      ice_nine (~> 0.11)
    dry-types (0.11.0)
      concurrent-ruby (~> 1.0)
      dry-configurable (~> 0.1)
      dry-container (~> 0.3)
      dry-core (~> 0.2, >= 0.2.1)
      dry-equalizer (~> 0.2)
      dry-logic (~> 0.4, >= 0.4.0)
      inflecto (~> 0.0.0, >= 0.0.2)
    dry-validation (0.11.0)
      concurrent-ruby (~> 1.0)
      dry-configurable (~> 0.1, >= 0.1.3)
      dry-core (~> 0.2, >= 0.2.1)
      dry-equalizer (~> 0.2)
      dry-logic (~> 0.4, >= 0.4.0)
      dry-types (~> 0.11.0)
    dry_time_formatter (0.2.1)
      dry-types (~> 0.9)
    elevation (1.0.0)
    equalizer (0.0.11)
    erubis (2.7.0)
    factory_girl (4.8.0)
      activesupport (>= 3.0.0)
    faraday (0.12.1)
      multipart-post (>= 1.2, < 3)
    fastercsv (1.5.5)
    fastest_paths (0.1.0)
      gem_config
      geokit
      interpolate
    ffi (1.9.10)
    ffi (1.9.10-java)
    ffi-compiler (0.1.3)
      ffi (>= 1.0.0)
      rake
    foreman (0.78.0)
      thor (~> 0.19.1)
    formatador (0.2.5)
    friendship (1.1.1)
      confstruct
      receptacle (~> 0.3)
      sequel
    fuubar (2.1.1)
      rspec (~> 3.0)
      ruby-progressbar (~> 1.4)
    gem_config (0.3.1)
    geokdtree (0.2.0)
      ffi
      ffi-compiler
      rake
    geokit (1.6.7)
      multi_json (>= 1.3.2)
    globalid (0.3.7)
      activesupport (>= 4.1.0)
    guard (2.13.0)
      formatador (>= 0.2.4)
      listen (>= 2.7, <= 4.0)
      lumberjack (~> 1.0)
      nenv (~> 0.1)
      notiffany (~> 0.0)
      pry (>= 0.9.12)
      shellany (~> 0.0)
      thor (>= 0.18.1)
    guard-compat (1.2.1)
    guard-rspec (4.6.4)
      guard (~> 2.1)
      guard-compat (~> 1.1)
      rspec (>= 2.99.0, < 4.0)
    guard-rubocop (1.2.0)
      guard (~> 2.0)
      rubocop (~> 0.20)
    gzip (1.0)
    hashdiff (0.3.0)
    hashie (3.5.6)
    highline (1.7.8)
    http-cookie (1.0.2)
      domain_name (~> 0.5)
    i18n (0.8.6)
    ice_nine (0.11.2)
    inflecto (0.0.2)
    interpolate (0.3.0)
    jdbc-mysql (5.1.42)
    jrjackson (0.4.0-java)
    jruby-rack (1.1.20)
    json (1.8.6)
    json (1.8.6-java)
    json_schema (0.12.1)
    json_spec (1.1.4)
      multi_json (~> 1.0)
      rspec (>= 2.0, < 4.0)
    jsonapi-deserializable (0.1.1)
      jsonapi-parser (= 0.1.1)
    jsonapi-parser (0.1.1)
    jsonapi-rb (0.1.2)
      jsonapi-deserializable (~> 0.1)
      jsonapi-serializable (~> 0.1)
    jsonapi-renderer (0.1.2)
    jsonapi-serializable (0.1.2)
      jsonapi-renderer (~> 0.1)
    listen (3.1.5)
      rb-fsevent (~> 0.9, >= 0.9.4)
      rb-inotify (~> 0.9, >= 0.9.7)
      ruby_dep (~> 1.2)
    live_tracking_api (1.0.1)
      rest-client (~> 1.8)
    loofah (2.0.3)
      nokogiri (>= 1.5.9)
    lumberjack (1.0.10)
    mail (2.6.4)
      mime-types (>= 1.16, < 4)
    makara (0.3.8)
      activerecord (>= 3.0.0)
    march_hare (2.22.0-java)
    messages (4.2.1)
      bunny (~> 2.6)
      gem_config
      msgpack (~> 1.0.3)
      receptacle (~> 0.1, >= 0.1.1)
    messages (4.2.1-java)
      gem_config
      march_hare (~> 2.22)
      msgpack (~> 1.0.3)
      receptacle (~> 0.1, >= 0.1.1)
    method_source (0.8.2)
    mime-types (2.99.3)
    mini_portile2 (2.3.0)
    minitest (5.10.2)
    moneta (1.0.0)
    mongo (2.4.1)
      bson (>= 4.2.1, < 5.0.0)
    msgpack (1.0.3)
    msgpack (1.0.3-java)
    multi_json (1.12.1)
    multipart-post (2.0.0)
    mysql2 (0.3.20)
    nenv (0.3.0)
    net-scp (1.2.1)
      net-ssh (>= 2.6.5)
    net-sftp (2.1.2)
      net-ssh (>= 2.6.5)
    net-ssh (2.9.4)
    net-ssh-gateway (1.2.0)
      net-ssh (>= 2.6.5)
    netrc (0.11.0)
    new_relic_wrapper (1.4.5)
      newrelic_rpm (~> 3.17)
    newrelic_rpm (3.18.1.330)
    nokogiri (1.8.1)
      mini_portile2 (~> 2.3.0)
    nokogiri (1.8.1-java)
    notiffany (0.0.8)
      nenv (~> 0.1)
      shellany (~> 0.0)
    notifier (1.0.8)
      actionmailer (~> 4.2)
      colored
    oj (2.16.0)
    parallel (1.8.0)
    parallel_tests (2.5.0)
      parallel
    paranoia (2.1.5)
      activerecord (~> 4.0)
    parser (2.4.0.0)
      ast (~> 2.2)
    plausibility_checker (1.0.4)
      gem_config
    powerpack (0.1.1)
    pry (0.10.3)
      coderay (~> 1.1.0)
      method_source (~> 0.8.1)
      slop (~> 3.4)
    pry (0.10.3-java)
      coderay (~> 1.1.0)
      method_source (~> 0.8.1)
      slop (~> 3.4)
      spoon (~> 0.0)
    pry-byebug (3.3.0)
      byebug (~> 8.0)
      pry (~> 0.10)
    puma (3.10.0)
    puma (3.10.0-java)
    rack (1.6.5)
    rack-protection (1.5.3)
      rack
    rack-test (0.6.3)
      rack (>= 1.0)
    rails-deprecated_sanitizer (1.0.3)
      activesupport (>= 4.2.0.alpha)
    rails-dom-testing (1.0.8)
      activesupport (>= 4.2.0.beta, < 5.0)
      nokogiri (~> 1.6)
      rails-deprecated_sanitizer (>= 1.0.1)
    rails-html-sanitizer (1.0.3)
      loofah (~> 2.0)
    railties (4.2.7.1)
      actionpack (= 4.2.7.1)
      activesupport (= 4.2.7.1)
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rainbow (2.2.2)
      rake
    rake (11.2.2)
    rb-fsevent (0.9.7)
    rb-inotify (0.9.7)
      ffi (>= 0.5.0)
    receptacle (0.3.1)
    redis (3.3.2)
    redis-namespace (1.5.2)
      redis (~> 3.0, >= 3.0.4)
    repository (1.3.1)
      activesupport
    repository-lock (3.0.0)
      gem_config (~> 0.3)
      receptacle (~> 0.3)
      zk (~> 1.9)
    request_handler (0.13.0)
      confstruct (~> 1.0.2)
      dry-types (~> 0.11.0)
      dry-validation (~> 0.11.0)
      multi_json (~> 1.12)
    rest-client (1.8.0)
      http-cookie (>= 1.0.2, < 2.0)
      mime-types (>= 1.16, < 3.0)
      netrc (~> 0.7)
    restore (3.0.5)
      activerecord (~> 4.0)
      awesome_print (~> 1.6)
      cassandra (~> 0.23)
      concurrent-ruby (~> 1.0)
      connection_pool (~> 2.2)
      dalli (~> 2.7)
      elevation (~> 1.0)
      gem_config
      gzip (~> 1.0)
      interpolate (~> 0.3)
      live_tracking_api (~> 1.0)
      trace_coder (~> 1.0)
    rspec (3.4.0)
      rspec-core (~> 3.4.0)
      rspec-expectations (~> 3.4.0)
      rspec-mocks (~> 3.4.0)
    rspec-collection_matchers (1.1.2)
      rspec-expectations (>= 2.99.0.beta1)
    rspec-core (3.4.3)
      rspec-support (~> 3.4.0)
    rspec-expectations (3.4.0)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.4.0)
    rspec-its (1.2.0)
      rspec-core (>= 3.0.0)
      rspec-expectations (>= 3.0.0)
    rspec-mocks (3.4.1)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.4.0)
    rspec-sidekiq (2.2.0)
      rspec (~> 3.0, >= 3.0.0)
      sidekiq (>= 2.4.0)
    rspec-support (3.4.1)
    rt-extensions (1.2.0)
      activesupport (>= 4.1.2)
    rt_deploy (1.14.11)
      capistrano (~> 2.15)
      capistrano-ext
      fastercsv
      rvm-capistrano
      slack-notifier
    rt_fixtures (1.1.0)
      repository (~> 1.3)
    rt_request_logger (0.4.0)
      activesupport (~> 4.0)
      multi_json (~> 1.11)
    rt_rubocop_defaults (1.0.0)
      rubocop (~> 0.46)
    rubocop (0.48.1)
      parser (>= 2.3.3.1, < 3.0)
      powerpack (~> 0.1)
      rainbow (>= 1.99.1, < 3.0)
      ruby-progressbar (~> 1.7)
      unicode-display_width (~> 1.0, >= 1.0.1)
    rubocop-rspec (1.10.0)
      rubocop (>= 0.42.0)
    rubocop_runner (2.0.0)
    ruby-progressbar (1.8.1)
    ruby_dep (1.5.0)
    rvm-capistrano (1.5.6)
      capistrano (~> 2.15.4)
    safe_yaml (1.0.4)
    sequel (4.47.0)
    service (0.2.0)
      confstruct (~> 1.0)
    shellany (0.0.1)
    sidekiq (4.2.8)
      concurrent-ruby (~> 1.0)
      connection_pool (~> 2.2, >= 2.2.0)
      rack-protection (>= 1.5.0)
      redis (~> 3.2, >= 3.2.1)
    sidekiq-ent (1.5.1)
      algorithms
      sidekiq (~> 4, >= 4.2.4)
      sidekiq-pro (~> 3, >= 3.4.0)
    sidekiq-pro (3.4.1)
      sidekiq (>= 4.1.5)
    simple_uuid (0.4.0)
    simplecov (0.11.2)
      docile (~> 1.1.0)
      json (~> 1.8)
      simplecov-html (~> 0.10.0)
    simplecov-html (0.10.0)
    sinatra (1.4.7)
      rack (~> 1.5)
      rack-protection (~> 1.4)
      tilt (>= 1.3, < 3)
    sinatra-advanced-routes (0.5.3)
      sinatra (~> 1.0)
    sinatra-contrib (1.4.6)
      backports (>= 2.0)
      multi_json
      rack-protection
      rack-test
      sinatra (~> 1.4.0)
      tilt (>= 1.3, < 3)
    sinatra-cross_origin (0.3.2)
    sinatra-param (1.4.0)
      sinatra (~> 1.3)
    slack-notifier (2.3.1)
    slop (3.6.0)
    slyphon-log4j (1.2.15)
    slyphon-zookeeper_jar (3.3.5-java)
    social_tools (6.2.6)
      attributes (~> 2.0)
      equalizer
      faraday (~> 0.12)
      friendship (~> 1.1)
      moneta (~> 1.0)
      mysql2 (~> 0.3)
      receptacle (~> 0.3)
      sequel (~> 4.46)
      virtus
    social_tools (6.2.6-java)
      attributes (~> 2.0)
      equalizer
      faraday (~> 0.12)
      friendship (~> 1.1)
      jdbc-mysql (~> 5.1)
      moneta (~> 1.0)
      receptacle (~> 0.3)
      sequel (~> 4.46)
      virtus
    spoon (0.0.4)
      ffi
    thor (0.19.1)
    thread_safe (0.3.6)
    thread_safe (0.3.6-java)
    thrift (0.8.0)
    thrift_client (0.8.4)
      thrift (~> 0.8.0)
    tilt (2.0.5)
    timecop (0.8.0)
    trace_coder (1.0.3)
      active_attr (~> 0.8.5)
      gem_config
      geokit (~> 1.6.0)
    transaction_flow (0.6.0)
      rack
    trinidad (1.4.6)
      jruby-rack (~> 1.1.13)
      trinidad_jars (>= 1.3.0, < 1.5.0)
    trinidad_init_services (1.2.3)
      trinidad (>= 1.3.5)
    trinidad_jars (1.4.2)
    tzinfo (1.2.3)
      thread_safe (~> 0.1)
    tzwhere (0.4.1)
      activesupport
      geokdtree
    unf (0.1.4)
      unf_ext
    unf (0.1.4-java)
    unf_ext (0.0.7.2)
    unicode-display_width (1.2.1)
    virtus (1.0.5)
      axiom-types (~> 0.1)
      coercible (~> 1.0)
      descendants_tracker (~> 0.0, >= 0.0.3)
      equalizer (~> 0.0, >= 0.0.9)
    webmock (1.24.0)
      addressable (>= 2.3.6)
      crack (>= 0.3.2)
      hashdiff
    zk (1.9.6)
      zookeeper (~> 1.4.0)
    zookeeper (1.4.11)
    zookeeper (1.4.11-java)
      slyphon-log4j (= 1.2.15)
      slyphon-zookeeper_jar (= 3.3.5)

PLATFORMS
  java
  ruby

DEPENDENCIES
  actionmailer (~> 4.2.7.1)
  active_model_serializers!
  activerecord (~> 4.2.7.1)
  activerecord-jdbc-adapter
  activerecord-jdbcmysql-adapter
  activesupport (~> 4.2.7.1)
  approvals
  attributes (~> 2.0)!
  authority (~> 3.0.3)!
  awesome_print
  bundler (~> 1.12)
  coercible!
  confstruct
  connection_pool
  data_transfer_object!
  database_cleaner
  dotenv
  dry-struct (~> 0.1)
  dry-validation (~> 0.11.0)
  dry_time_formatter (~> 0.2)!
  elevation!
  equalizer
  factory_girl
  faraday
  fastest_paths (~> 0.1.0)!
  foreman
  fuubar
  guard-rspec
  guard-rubocop
  gzip
  health_monitor!
  jrjackson
  jruby-rack (~> 1.1.20)
  json_schema
  json_spec
  jsonapi-rb (~> 0.1.2)
  legacy_serializer!
  live_tracking_api (~> 1.0)!
  makara (~> 0.3.8)
  messages (~> 4.2)!
  mongo (~> 2.4)
  multi_json
  mysql2 (~> 0.3.18)
  net-ssh (~> 2.9.2)
  net-ssh-gateway (~> 1.2.0)
  new_relic_wrapper (> 1.4)!
  nokogiri (~> 1.8.1)
  notifier (~> 1.0.8)!
  oj
  parallel_tests
  paranoia (~> 2.0)
  plausibility_checker (~> 1.0.4)!
  pry
  pry-byebug
  puma
  rack-test
  racksh!
  railties (~> 4.2.7.1)
  rake
  receptacle (~> 0.3)
  redis-namespace
  repository-lock!
  request_handler (~> 0.13)
  restore (~> 3.0.5)!
  rspec (~> 3.4)
  rspec-collection_matchers
  rspec-its
  rspec-sidekiq (~> 2.1)
  rt-extensions (~> 1.0)!
  rt_deploy (~> 1.14)!
  rt_fixtures (~> 1.1.0)!
  rt_request_logger (~> 0.4)!
  rt_rubocop_defaults (~> 1.0)
  rubocop-rspec (~> 1.10)
  rubocop_runner (~> 2.0)
  service (~> 0.2.0)!
  sidekiq-ent (~> 1.4)!
  simplecov
  sinatra
  sinatra-advanced-routes
  sinatra-contrib
  sinatra-cross_origin
  sinatra-param
  social_tools (~> 6.2.6)!
  timecop
  trace_coder (~> 1.0)!
  transaction_flow (~> 0.6)!
  trinidad_init_services (= 1.2.3)
  trinidad_jars (~> 1.4.0)
  tzwhere (~> 0.4.1)!
  virtus
  webmock
  zk (~> 1.9)

BUNDLED WITH
   1.15.4
hollyjrobertson commented 6 years ago

Holly Calloway@DESKTOP-VLO5HUD ~/Desktop/coder/simplecodecasts_saas (master) $ bundle update rails

--- ERROR REPORT TEMPLATE -------------------------------------------------------

Error Report

Questions

Please fill out answers to these questions, it'll help us figure out why things are going wrong.

Backtrace

RuntimeError: Unable to find a spec satisfying nokogiri (>= 1.6) java in the set. Perhaps the lockfile is corrupted?
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/lib/bundler/spec_set.rb:40:in `block in for'
  org/jruby/RubyKernel.java:1298:in `loop'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/lib/bundler/spec_set.rb:25:in `for'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/lib/bundler/definition.rb:125:in `initialize'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/lib/bundler/dsl.rb:218:in `to_definition'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/lib/bundler/dsl.rb:13:in `evaluate'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/lib/bundler/definition.rb:36:in `build'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/lib/bundler.rb:135:in `definition'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/lib/bundler/cli/update.rb:45:in `run'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/lib/bundler/cli.rb:266:in `update'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/lib/bundler/cli.rb:27:in `dispatch'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/lib/bundler/cli.rb:18:in `start'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/exe/bundle:30:in `block in (root)'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/lib/bundler/friendly_errors.rb:122:in `with_friendly_errors'
  C:/jruby-9.1.8.0/lib/ruby/gems/shared/gems/bundler-1.16.0.pre.3/exe/bundle:22:in `<main>'
  org/jruby/RubyKernel.java:979:in `load'
  c:/jruby-9.1.8.0/bin/bundle:22:in `<main>'

Environment

Bundler       1.16.0.pre.3
  Platforms   ruby, universal-java-1.8
Ruby          2.3.1p0 (2017-03-06 revision 54768) [java]
  Full Path   C:/jruby-9.1.8.0/bin/jruby.exe
  Config Dir  C:/jruby-9.1.8.0/etc
RubyGems      2.6.14
  Gem Home    C:/jruby-9.1.8.0/lib/ruby/gems/shared
  Gem Path    C:/jruby-9.1.8.0/lib/ruby/gems/shared;c:/Users/Holly Calloway/.gem/jruby/2.3.0
  User Path   c:/Users/Holly Calloway/.gem/jruby/2.3.0
  Bin Dir     C:/jruby-9.1.8.0/bin
Tools
  Git         1.9.4.msysgit.2
  RVM         not installed
  rbenv       not installed
  chruby      not installed

Bundler Build Metadata

Built At          2017-10-05
Git SHA           d94616dd8
Released Version  true

Bundler settings

without
  Set for your local app (C:/Users/Holly Calloway/Desktop/coder/simplecodecasts_saas/.bundle/config): [:production]

Gemfile

Gemfile

source 'https://rubygems.org'

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  "https://github.com/#{repo_name}.git"
end

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.4'

# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
  # Adds support for Capybara system testing and selenium driver
  gem 'capybara', '~> 2.13'
  gem 'selenium-webdriver'
end
gem 'bindex', '~> 0.5.0'
group :development do
  # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
  gem 'web-console', '>= 3.3.0'
end

group :development do
# Use sqlite3 as the database for Active Record
        gem 'sqlite3'
end

group :production do
        gem 'pg'
        gem 'rails_12factor'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

GEM
  remote: https://rubygems.org/
  specs:
    actioncable (5.1.4)
      actionpack (= 5.1.4)
      nio4r (~> 2.0)
      websocket-driver (~> 0.6.1)
    actionmailer (5.1.4)
      actionpack (= 5.1.4)
      actionview (= 5.1.4)
      activejob (= 5.1.4)
      mail (~> 2.5, >= 2.5.4)
      rails-dom-testing (~> 2.0)
    actionpack (5.1.4)
      actionview (= 5.1.4)
      activesupport (= 5.1.4)
      rack (~> 2.0)
      rack-test (>= 0.6.3)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.0.2)
    actionview (5.1.4)
      activesupport (= 5.1.4)
      builder (~> 3.1)
      erubi (~> 1.4)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.0.3)
    activejob (5.1.4)
      activesupport (= 5.1.4)
      globalid (>= 0.3.6)
    activemodel (5.1.4)
      activesupport (= 5.1.4)
    activerecord (5.1.4)
      activemodel (= 5.1.4)
      activesupport (= 5.1.4)
      arel (~> 8.0)
    activesupport (5.1.4)
      concurrent-ruby (~> 1.0, >= 1.0.2)
      i18n (~> 0.7)
      minitest (~> 5.1)
      tzinfo (~> 1.1)
    addressable (2.5.2)
      public_suffix (>= 2.0.2, < 4.0)
    arel (8.0.0)
    bindex (0.5.0)
    builder (3.2.3)
    byebug (9.1.0)
    capybara (2.15.4)
      addressable
      mini_mime (>= 0.1.3)
      nokogiri (>= 1.3.3)
      rack (>= 1.0.0)
      rack-test (>= 0.5.4)
      xpath (~> 2.0)
    childprocess (0.8.0)
      ffi (~> 1.0, >= 1.0.11)
    coffee-rails (4.2.2)
      coffee-script (>= 2.2.0)
      railties (>= 4.0.0)
    coffee-script (2.4.1)
      coffee-script-source
      execjs
    coffee-script-source (1.12.2)
    concurrent-ruby (1.0.5)
    crass (1.0.2)
    erubi (1.7.0)
    execjs (2.7.0)
    ffi (1.9.18-x86-mingw32)
    globalid (0.4.0)
      activesupport (>= 4.2.0)
    i18n (0.9.0)
      concurrent-ruby (~> 1.0)
    jbuilder (2.7.0)
      activesupport (>= 4.2.0)
      multi_json (>= 1.2)
    loofah (2.1.1)
      crass (~> 1.0.2)
      nokogiri (>= 1.5.9)
    mail (2.6.6)
      mime-types (>= 1.16, < 4)
    method_source (0.9.0)
    mime-types (3.1)
      mime-types-data (~> 3.2015)
    mime-types-data (3.2016.0521)
    mini_mime (0.1.4)
    mini_portile2 (2.3.0)
    minitest (5.10.3)
    multi_json (1.12.2)
    nio4r (2.1.0)
    nokogiri (1.8.1-x86-mingw32)
      mini_portile2 (~> 2.3.0)
    public_suffix (3.0.0)
    puma (3.10.0)
    rack (2.0.3)
    rack-test (0.7.0)
      rack (>= 1.0, < 3)
    rails (5.1.4)
      actioncable (= 5.1.4)
      actionmailer (= 5.1.4)
      actionpack (= 5.1.4)
      actionview (= 5.1.4)
      activejob (= 5.1.4)
      activemodel (= 5.1.4)
      activerecord (= 5.1.4)
      activesupport (= 5.1.4)
      bundler (>= 1.3.0)
      railties (= 5.1.4)
      sprockets-rails (>= 2.0.0)
    rails-dom-testing (2.0.3)
      activesupport (>= 4.2.0)
      nokogiri (>= 1.6)
    rails-html-sanitizer (1.0.3)
      loofah (~> 2.0)
    railties (5.1.4)
      actionpack (= 5.1.4)
      activesupport (= 5.1.4)
      method_source
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rake (12.1.0)
    rb-fsevent (0.10.2)
    rb-inotify (0.9.10)
      ffi (>= 0.5.0, < 2)
    rubyzip (1.2.1)
    sass (3.5.2)
      sass-listen (~> 4.0.0)
    sass-listen (4.0.0)
      rb-fsevent (~> 0.9, >= 0.9.4)
      rb-inotify (~> 0.9, >= 0.9.7)
    sass-rails (5.0.6)
      railties (>= 4.0.0, < 6)
      sass (~> 3.1)
      sprockets (>= 2.8, < 4.0)
      sprockets-rails (>= 2.0, < 4.0)
      tilt (>= 1.1, < 3)
    selenium-webdriver (3.6.0)
      childprocess (~> 0.5)
      rubyzip (~> 1.0)
    sprockets (3.7.1)
      concurrent-ruby (~> 1.0)
      rack (> 1, < 3)
    sprockets-rails (3.2.1)
      actionpack (>= 4.0)
      activesupport (>= 4.0)
      sprockets (>= 3.0.0)
    sqlite3 (1.3.13-x86-mingw32)
    thor (0.20.0)
    thread_safe (0.3.6)
    tilt (2.0.8)
    turbolinks (5.0.1)
      turbolinks-source (~> 5)
    turbolinks-source (5.0.3)
    tzinfo (1.2.3)
      thread_safe (~> 0.1)
    tzinfo-data (1.2017.2)
      tzinfo (>= 1.0.0)
    uglifier (3.2.0)
      execjs (>= 0.3.0, < 3)
    web-console (3.5.1)
      actionview (>= 5.0)
      activemodel (>= 5.0)
      bindex (>= 0.4.0)
      railties (>= 5.0)
    websocket-driver (0.6.5)
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.2)
    xpath (2.1.0)
      nokogiri (~> 1.3)

PLATFORMS
  x86-mingw32

DEPENDENCIES
  byebug
  capybara (~> 2.13)
  coffee-rails (~> 4.2)
  jbuilder (~> 2.5)
  puma (~> 3.7)
  rails (~> 5.1.4)
  sass-rails (~> 5.0)
  selenium-webdriver
  sqlite3
  turbolinks (~> 5)
  tzinfo-data
  uglifier (>= 1.3.0)
  web-console (>= 3.3.0)

BUNDLED WITH
   1.15.3

--- TEMPLATE END ----------------------------------------------------------------

TheWudu commented 6 years ago

Guess I can close the issue, as we already use various 1.15 and 1.16 bundlers, and it is not a problem any more.