[英]“bundle exec rake” doesn't honor “without”
在源代码的GitLab安装中,我遇到了运行rake
等二进制文件的问题。 我从未见过自己的Ruby或Rails项目的类似问题:
# bundle config
Set for your local app (/mnt/data/www/gitlab.bitcetera.com/source/gitlab/.bundle/config): "1"
path
Set for your local app (/mnt/data/www/gitlab.bitcetera.com/source/gitlab/.bundle/config): "vendor/bundle"
without
Set for your local app (/mnt/data/www/gitlab.bitcetera.com/source/gitlab/.bundle/config): "development:test:unicorn:mysql:kerberos:metrics"
disable_shared_gems
Set for your local app (/mnt/data/www/gitlab.bitcetera.com/source/gitlab/.bundle/config): "true"
# bundle install --deployment --without development test unicorn mysql kerberos metrics
# bundle config
The Gemfile's dependencies are satisfied
# bundle exec rake --tasks
rake aborted!
LoadError: cannot load such file -- haml_lint/rake_task
查看Gemfile的相关部分:
group :development, :test do
[...]
gem 'haml_lint', '~> 0.21.0', require: false
[...]
end
当然haml_lint
gem缺失了,毕竟它只在“开发”和“测试”组中,我已经被“没有”排除了。
知道这里发生了什么吗?
弄清楚,有点愚蠢的原因:RAILS_ENV应该已经自动设置但它当然不是因为事情出错了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.