Unset the `RUBYOPT` env variable before installing `gitaly-ruby`
What does this MR do?
This takes a simpler and less-impactful solution to https://gitlab.com/gitlab-org/gitlab-ce/issues/35859.
Are there points in the code the reviewer needs to double check?
In #35859 (closed) I've identified that the issue was caused because the RUBYOPT
variable was set to -rbundler/setup
. Unsetting this variable before installing gitaly-ruby
should solve the original issue.
Why was this MR needed?
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13249 seemed to have unintended effects: https://gitlab.com/gitlab-org/gitlab-ce/issues/35941 and https://gitlab.com/gitlab-org/gitlab-ce/issues/35967.
What are the relevant issue numbers?
Closes #35941 (closed), #35967 (closed).