Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-13 12:08:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-13 12:08:20 +0300
commit2d8c28f1d32709280506507f3b6e6d2da7440da9 (patch)
tree9ed8319e6cdddd1e03493b82c552ec8df590027f /bin
parent99bb3eedd09ba55be5934da8138e2678a3e1be4d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spring8
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