"bundle exec rake" does not honor "without",

When installing GitLab from source, I have problems running binary files, for example rake. I have never seen such problems with my own Ruby or Rails projects:

# 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 dependencies are satisfied

# bundle exec rake --tasks
rake aborted!
LoadError: cannot load such file -- haml_lint/rake_task

Take a look at the corresponding Gemfile section :

group :development, :test do
  [...]
  gem 'haml_lint', '~> 0.21.0', require: false
  [...]
end

Of course, the pearl is haml_lintmissing, in the end, it is only in the groups of "development" and "test", which I excluded from the "without."

Any idea what is going on here?

+4
source share
1 answer

, - : RAILS_ENV , , , .

+3

Source: https://habr.com/ru/post/1681139/


All Articles