diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-13 12:08:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-13 12:08:20 +0300 |
commit | 2d8c28f1d32709280506507f3b6e6d2da7440da9 (patch) | |
tree | 9ed8319e6cdddd1e03493b82c552ec8df590027f /bin | |
parent | 99bb3eedd09ba55be5934da8138e2678a3e1be4d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/spring | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/spring b/bin/spring index 497ab099954..f3d9e81b53f 100755 --- a/bin/spring +++ b/bin/spring @@ -11,7 +11,11 @@ unless (defined?(Spring) || ENV['ENABLE_SPRING'] != '1') && File.basename($0) != spring = lockfile.specs.detect { |spec| spec.name == 'spring' } if spring Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' + begin + gem 'spring', spring.version + require 'spring/binstub' + rescue Gem::MissingSpecError => e + $stderr.puts 'INFO: Spring not available.' + end end end |