Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

bundle exec updating Gemfile.lock #3298

Closed
Tonkpils opened this issue Dec 10, 2014 · 6 comments
Closed

bundle exec updating Gemfile.lock #3298

Tonkpils opened this issue Dec 10, 2014 · 6 comments

Comments

@Tonkpils
Copy link

A couple of issues have been happening since 1.7.8. This is one of them I've run into.

The following commands were run back to back

$ git status
On branch bugfix/branch-1
Your branch is up-to-date with 'origin/bugfix/branch-1'.

nothing to commit, working directory clean

$ bundle exec rspec spec
Finished in 9.86 seconds (files took 1.81 seconds to load)
1144 examples, 0 failures, 5 pending

Randomized with seed 27621

$ git status
On branch bugfix/branch-1
Your branch is up-to-date with 'origin/bugfix/branch-1'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   Gemfile.lock

no changes added to commit (use "git add" and/or "git commit -a")

Here's the output of bundle env

Bundler 1.7.9
Ruby 2.1.2 (2014-05-08 patchlevel 95) [x86_64-darwin14.0]
Rubygems 2.2.2
GEM_HOME


Gemfile
source 'https://rubygems.org'
source "https://gems.contribsys.com/"

ruby '2.1.2'

gem 'sinatra', "~> 1.4.4"
gem 'faye-websocket'
gem 'thin'
gem 'redis'
gem 'oj'

gem 'dotenv'
gem 'env_lint', "~> 0.0.6"

gem 'haml'
gem 'slim'
gem 'sidekiq-pro'
gem 'sidekiq-failures'
gem 'sidekiq-unique-jobs'

gem 'gcm'
gem 'grocer'

gem 'airbrake'
gem 'rake'

gem 'rack-cors', require: 'rack/cors'
gem 'rack-contrib', require: 'rack/contrib'
gem 'rack-parser', require: 'rack/parser'

gem 'sequel'
gem 'nokogiri'
gem 'pg'
gem 'request_store', '~> 1.0.5'

source "http://private.gem.server" do
  gem 'cc-1', '~> 0.0.7'
  gem 'csk', '~> 0.8.1'
  gem 'cisk', '~> 0.5.1', require: 'cis'
  gem 'pc', '~> 0.3.0'
  gem 'cl', '~> 0.0.2'
end

group :test do
  gem 'database_cleaner'
  gem 'faker'
  gem 'factory_girl'
  gem 'rspec-eventmachine'
  gem 'rspec', '~>3.0'
  gem 'rack-test'
  gem 'simplecov'
  gem 'timecop'
  gem 'webmock'
  gem 'mock_redis'
  gem 'rspec-its'
end

group :development, :test do
  gem 'awesome_print'
  gem 'pry'
end


Gemfile.lock

GEM
  remote: https://rubygems.org/
  remote: https://gems.contribsys.com/
  remote: http://private.gem.server/
  specs:
    activemodel (4.1.8)
      activesupport (= 4.1.8)
      builder (~> 3.1)
    activesupport (4.1.8)
      i18n (~> 0.6, >= 0.6.9)
      json (~> 1.7, >= 1.7.7)
      minitest (~> 5.1)
      thread_safe (~> 0.1)
      tzinfo (~> 1.1)
    addressable (2.3.6)
    airbrake (4.1.0)
      builder
      multi_json
    awesome_print (1.2.0)
    aws-sdk (1.59.1)
      aws-sdk-v1 (= 1.59.1)
    aws-sdk-v1 (1.59.1)
      json (~> 1.4)
      nokogiri (>= 1.4.4)
    builder (3.2.2)
    celluloid (0.16.0)
      timers (~> 4.0.0)
    celluloid-eventsource (0.2.1)
      celluloid-io (~> 0.15.0)
      http_parser.rb (~> 0.6.0)
    celluloid-io (0.15.0)
      celluloid (>= 0.15.0)
      nio4r (>= 0.5.0)
    cc-1 (0.0.7)
      celluloid-eventsource (~> 0.2.0)
      faraday
      oj
      websocket-client-simple
    cl (0.0.2)
      semantic_logger (~> 2.10.0)
    coderay (1.1.0)
    connection_pool (2.1.0)
    crack (0.4.2)
      safe_yaml (~> 1.0.0)
    cisk (0.5.1)
      csk (~> 0.8.0)
      faraday
      oj
      rack
      thor
    csk (0.8.1)
      awesome_print
      cc-1 (~> 0.0.7)
      faraday
      oj
      thor
    daemons (1.1.9)
    database_cleaner (1.3.0)
    diff-lcs (1.2.5)
    docile (1.1.5)
    dotenv (1.0.2)
    elasticsearch (1.0.6)
      elasticsearch-api (= 1.0.6)
      elasticsearch-transport (= 1.0.6)
    elasticsearch-api (1.0.6)
      multi_json
    elasticsearch-transport (1.0.6)
      faraday
      multi_json
    env_lint (0.0.6)
      formatador
    event_emitter (0.2.5)
    eventmachine (1.0.3)
    factory_girl (4.5.0)
      activesupport (>= 3.0.0)
    faker (1.4.3)
      i18n (~> 0.5)
    faraday (0.9.0)
      multipart-post (>= 1.2, < 3)
    faye-websocket (0.8.0)
      eventmachine (>= 0.12.0)
      websocket-driver (>= 0.4.0)
    formatador (0.2.5)
    gcm (0.0.9)
      httparty
      json
    grocer (0.6.0)
    haml (4.0.5)
      tilt
    hitimes (1.2.2)
    http_parser.rb (0.6.0)
    httparty (0.13.3)
      json (~> 1.8)
      multi_xml (>= 0.5.2)
    i18n (0.6.11)
    json (1.8.1)
    method_source (0.8.2)
    mini_portile (0.6.1)
    minitest (5.4.3)
    mock_redis (0.13.2)
    multi_json (1.10.1)
    multi_xml (0.5.5)
    multipart-post (2.0.0)
    nio4r (1.0.1)
    nokogiri (1.6.4.1)
      mini_portile (~> 0.6.0)
    obscenity (1.0.2)
    oj (2.11.1)
    pg (0.17.1)
    pc (0.3.0)
      activemodel (>= 3.2.13)
      activesupport (>= 3.2.13)
      cl (~> 0.0.2)
      obscenity (~> 1.0)
      rack
    pry (0.10.1)
      coderay (~> 1.1.0)
      method_source (~> 0.8.1)
      slop (~> 3.4)
    rack-contrib (1.2.0)
      rack (>= 0.9.1)
    rack-cors (0.2.9)
    rack-parser (0.6.1)
      rack
    rack-protection (1.5.3)
      rack
    rack-test (0.6.2)
      rack (>= 1.0)
    rake (10.3.2)
    redis (3.1.0)
    redis-namespace (1.5.1)
      redis (~> 3.0, >= 3.0.4)
    request_store (1.0.8)
    rspec (3.1.0)
      rspec-core (~> 3.1.0)
      rspec-expectations (~> 3.1.0)
      rspec-mocks (~> 3.1.0)
    rspec-core (3.1.7)
      rspec-support (~> 3.1.0)
    rspec-eventmachine (0.2.0)
      eventmachine (>= 0.12.0)
      rspec (>= 2.0, < 4.0)
    rspec-expectations (3.1.2)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.1.0)
    rspec-its (1.1.0)
      rspec-core (>= 3.0.0)
      rspec-expectations (>= 3.0.0)
    rspec-mocks (3.1.3)
      rspec-support (~> 3.1.0)
    rspec-support (3.1.2)
    safe_yaml (1.0.4)
    semantic_logger (2.10.0)
      sync_attr (>= 1.0)
      thread_safe (>= 0.1.0)
    sequel (4.16.0)
    sidekiq (2.17.7)
      celluloid (>= 0.15.2)
      connection_pool (>= 1.0.0)
      json
      redis (>= 3.0.6)
      redis-namespace (>= 1.3.1)
    sidekiq-failures (0.4.3)
      sidekiq (>= 2.16.0)
    sidekiq-pro (1.5.1)
      sidekiq (>= 2.17.5, < 3)
    sidekiq-unique-jobs (3.0.10)
      sidekiq (>= 2.6)
    simplecov (0.9.1)
      docile (~> 1.1.0)
      multi_json (~> 1.0)
      simplecov-html (~> 0.8.0)
    simplecov-html (0.8.0)
    sinatra (1.4.5)
      rack (~> 1.4)
      rack-protection (~> 1.4)
      tilt (~> 1.3, >= 1.3.4)
    slim (2.1.0)
      temple (~> 0.6.9)
      tilt (>= 1.3.3, < 2.1)
    slop (3.6.0)
    sync_attr (1.0.0)
    temple (0.6.10)
    thin (1.6.3)
      daemons (~> 1.0, >= 1.0.9)
      eventmachine (~> 1.0)
      rack (~> 1.0)
    thor (0.19.1)
    thread_safe (0.3.4)
    tilt (1.4.1)
    timecop (0.7.1)
    timers (4.0.1)
      hitimes
    tzinfo (1.2.2)
      thread_safe (~> 0.1)
    webmock (1.20.4)
      addressable (>= 2.3.6)
      crack (>= 0.3.2)
    websocket (1.2.1)
    websocket-client-simple (0.2.2)
      event_emitter
      websocket
    websocket-driver (0.4.0)

PLATFORMS
  ruby

DEPENDENCIES
  airbrake
  awesome_print
  cc-1 (~> 0.0.7)!
  cl (~> 0.0.2)!
  cisk (~> 0.5.1)!
  csk (~> 0.8.1)!
  database_cleaner
  dotenv
  env_lint (~> 0.0.6)
  factory_girl
  faker
  faye-websocket
  foreman!
  gcm
  grocer
  haml
  mock_redis
  nokogiri
  oj
  pg
  pc (~> 0.3.0)!
  pry
  rack-contrib
  rack-cors
  rack-parser
  rack-test
  rake
  redis
  request_store (~> 1.0.5)
  rspec (~> 3.0)
  rspec-eventmachine
  rspec-its
  sequel
  sidekiq-failures
  sidekiq-pro
  sidekiq-unique-jobs
  simplecov
  sinatra (~> 1.4.4)
  slim
  thin
  timecop
  webmock
@Who828
Copy link
Contributor

Who828 commented Dec 10, 2014

Very strange, what's the diff in Gemfile.lock when you run bundle exec?

@Tonkpils
Copy link
Author

git diff
diff --git a/Gemfile.lock b/Gemfile.lock
index de47712..1c0cf74 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -41,15 +41,15 @@ GEM
       rack
     awesome_print (1.2.0)
-    aws-sdk (1.59.0)
-      aws-sdk-v1 (= 1.59.0)
-    aws-sdk-v1 (1.59.0)
+    aws-sdk (1.59.1)
+      aws-sdk-v1 (= 1.59.1)
+    aws-sdk-v1 (1.59.1)
       json (~> 1.4)
       nokogiri (>= 1.4.4)
     builder (3.2.2)
     celluloid (0.16.0)
       timers (~> 4.0.0)
-    celluloid-eventsource (0.2.0)
+    celluloid-eventsource (0.2.1)
       celluloid-io (~> 0.15.0)
       http_parser.rb (~> 0.6.0)
     celluloid-io (0.15.0)

@TimMoore
Copy link
Contributor

This may be related to #3175. @Tonkpils would you be able to try it out with the code on this branch? https://github.com/TimMoore/bundler/tree/issue-3175-unlocked-sources

@Tonkpils
Copy link
Author

Sure @TimMoore I'll post back with the results

@Tonkpils
Copy link
Author

@TimMoore that branch seems to have fixed the issue. I was able to reproduce the issue with bundler 1.7.9 doing a bundle install instead of bundle exec. With your branch the issue was gone and everything worked as expected.

@TimMoore
Copy link
Contributor

Thanks so much for confirming @Tonkpils. I was holding off on a pull request for that branch because it doesn't totally solve #3175, but since it does solve this problem I'll go ahead and try to get that merged in for the next bug fix release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants