删除Bundler可能使用的系统范围的git repos和git checkout

时间:2022-01-11 00:19:37

In my gem file I have a Git reference:

在我的gem文件中,我有一个Git参考:

gem "calendar_date_select", :git => 'git://github.com/paneq/calendar_date_select.git'

I would like to know where bundler paced that Git checkout so I can manually clean it.

我想知道捆绑者在Git收银台的节奏,所以我可以手动清理它。

Thanks.

谢谢。

1 个解决方案

#1


1  

this depends on your local setup. let me explain by one of my projects.

这取决于您的本地设置。让我解释一下我的一个项目。

it's within an rvm gemset, so my .rvmrc is like this:

它在一个rvm gemset中,所以我的.rvmrc是这样的:

rvm use ruby-1.9.3-p125@hamburg_on_ruby --install --create

and i use ActiveAdmin from git in my Gemfile

我在我的Gemfile中使用来自git的ActiveAdmin

gem "activeadmin", :git => "https://github.com/gregbell/active_admin.git"

which results in a Gemfile.lock like this

这导致像这样的Gemfile.lock

GIT
  remote: https://github.com/gregbell/active_admin.git
  revision: 82a13de45feeba2510f015aaae9d412878e4c6f5

so the actual cloned repo is in

所以克隆的实际回购是在

~/.rvm/gems/ruby-1.9.3-p125@hamburg_on_ruby/bundler/gems/active_admin-82a13de45fee/

#1


1  

this depends on your local setup. let me explain by one of my projects.

这取决于您的本地设置。让我解释一下我的一个项目。

it's within an rvm gemset, so my .rvmrc is like this:

它在一个rvm gemset中,所以我的.rvmrc是这样的:

rvm use ruby-1.9.3-p125@hamburg_on_ruby --install --create

and i use ActiveAdmin from git in my Gemfile

我在我的Gemfile中使用来自git的ActiveAdmin

gem "activeadmin", :git => "https://github.com/gregbell/active_admin.git"

which results in a Gemfile.lock like this

这导致像这样的Gemfile.lock

GIT
  remote: https://github.com/gregbell/active_admin.git
  revision: 82a13de45feeba2510f015aaae9d412878e4c6f5

so the actual cloned repo is in

所以克隆的实际回购是在

~/.rvm/gems/ruby-1.9.3-p125@hamburg_on_ruby/bundler/gems/active_admin-82a13de45fee/