We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eca9f47 + 18cb56c commit 1f3469cCopy full SHA for 1f3469c
config/templates/gitlab-rails/bundle_exec_wrapper.erb
@@ -40,4 +40,7 @@ else
40
privilege_drop="-u ${gitlab_user}:${gitlab_group}"
41
fi
42
43
-exec <%= install_dir %>/embedded/bin/chpst -e <%= install_dir %>/etc/gitlab-rails/env ${privilege_drop} -U ${gitlab_user}:${gitlab_group} <%= install_dir %>/embedded/bin/bundle exec <%= command %>
+# Suppress one-line pattern matching warnings: https://gitlab.com/gitlab-org/gitlab/-/issues/420811
44
+rubyopt="RUBYOPT=-W:no-experimental"
45
+
46
+exec <%= install_dir %>/embedded/bin/chpst -e <%= install_dir %>/etc/gitlab-rails/env ${privilege_drop} -U ${gitlab_user}:${gitlab_group} /usr/bin/env ${rubyopt} <%= install_dir %>/embedded/bin/bundle exec <%= command %>
0 commit comments