Skip to content

Instantly share code, notes, and snippets.

@mdavidn
Created March 31, 2017 00:24
Show Gist options
  • Save mdavidn/66027b9727f536f9f058108560e6b88f to your computer and use it in GitHub Desktop.
Save mdavidn/66027b9727f536f9f058108560e6b88f to your computer and use it in GitHub Desktop.
Reproduction script for rubygems/bundler#5552
#!/bin/bash
set -ex
mkdir /tmp/repo-5552
cd /tmp/repo-5552
bundle env
# Bundler 1.14.6
# Rubygems 2.5.1
# Ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
# Git 2.10.2
# Platform x86_64-darwin-15
cat > Gemfile << EOF
source 'https://rubygems.org'
gem 'bundler', git: 'git@github.com:bundler/bundler.git'
EOF
# Expected behavior: one install will wait for the other
# Observed behavior: sporadic git index.lock error
bundle install &
bundle install &
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment