Join GitHub today
bundle install fails on WSL when using a git repository with a path #5322
I'm currently using Docker for Windows (1.12.6) and WSL on Windows 10 (Linux DESKTOP-DLRRFKC 3.4.0+ #1 PREEMPT Thu Aug 1 17:06:05 CST 2013 x86_64 x86_64 x86_64 GNU/Linux)
I'm having issues when running
`git clone --no-checkout --quiet "/myapp/vendor/bundle/ruby/2.3.0/cache/bundler/git/bootstrap-sass-b9ed78534df7520565c4f55770e38b8d270f127f" "/myapp/vendor/bundle/ruby/2.3.0/bundler/gems/bootstrap-sass-cf9a9b181fdf"` due to error (4/4): Bundler::Source::Git::GitCommandError Git error: command `git clone --no-checkout --quiet "/myapp/vendor/bundle/ruby/2.3.0/cache/bundler/git/bootstrap-sass-b9ed78534df7520565c4f55770e38b8d270f127f" "/myapp/vendor/bundle/ruby/2.3.0/bundler/gems/bootstrap-sass-cf9a9b181fdf"` in directory /myapp has failed. If this error persists you could try removing the cache directory '/myapp/vendor/bundle/ruby/2.3.0/cache/bundler/git/bootstrap-sass-b9ed78534df7520565c4f55770e38b8d270f127f'error: internal error: refs/remotes/origin/2.0-stable is not a valid packed reference!
I've put up a repository with an example of what I mean at https://github.com/omarqureshi/not_valid_packed_reference
I'm pretty sure that this is a Git issue and will also be looking to report this to the Git mailing list, however, they may equally say that this is a Docker and/or NTFS issue
The volume mount is the cause of this https://github.com/omarqureshi/not_valid_packed_reference/blob/master/docker-compose.yml#L8
I can get around this by NOT using --path, however, it would be preferable if this just worked on WSL too.
If you'd like any other information, please let me know, otherwise, the Dockerfile should have enough information there to let you know what my setup is like.
I personally think it's more of an issue with Git interacting with NTFS, however, given that the use of bundler is the only place that I have experienced this (and I have successfully been using Docker, Git and WSL on other Rails apps before this), it's probably not a bad place to put this issue.
I'll probably try testing this by installing Ruby on WSL and then bundler too.