[英]“bundle exec rake” doesn't honor “without”
On a GitLab installation from source, I'm having problems running binaries such as rake
. 在源代码的GitLab安装中,我遇到了运行
rake
等二进制文件的问题。 I've never seen similar problems with my own Ruby or Rails projects: 我从未见过自己的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
Looking at the relevant section of the Gemfile : 查看Gemfile的相关部分:
group :development, :test do
[...]
gem 'haml_lint', '~> 0.21.0', require: false
[...]
end
Of course the haml_lint
gem is missing, after all, it's in the "development" and "test" groups only which I've excluded by "without". 当然
haml_lint
gem缺失了,毕竟它只在“开发”和“测试”组中,我已经被“没有”排除了。
Any idea what's going on here? 知道这里发生了什么吗?
弄清楚,有点愚蠢的原因:RAILS_ENV应该已经自动设置但它当然不是因为事情出错了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.