Skip to content

WIP: Add link for python3 to fix RST rendering

Stan Hu requested to merge add-link-for-python3 into master

In 8.11, RST no longer is rendered due to the Python 3 update in omnibus. The problem:

/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/github-markup-1.4.0/lib/github/commands/rest2html runs /usr/bin/env python, which defaults to the system version. Since docutils is not usually available in the system python, the rendering fails.

Add a symlink from python3.4 -> python so that the bundled version takes precedence:

irb(main):004:0> `/usr/bin/env echo $PATH`
=> "/opt/gitlab/embedded/service/gem/ruby/2.3.0/bin:/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin\n"
irb(main):005:0> 

Merge request reports