misc: Specific mkosi fixes for centos-7

Seems we need golang from epel, to mask out the old git version, and to
workaround mkosi bugs.
This commit is contained in:
James Shubin
2019-10-04 23:58:17 -04:00
parent d64f9f5401
commit d57f7aa03f
3 changed files with 23 additions and 7 deletions

View File

@@ -76,7 +76,7 @@ fi
if [ $travis -eq 0 ]; then
if [ ! -z "$YUM" ]; then
if [ -z "$GO" ]; then
$sudo_command $YUM install -y golang golang-googlecode-tools-stringer
$sudo_command $YUM install -y golang golang-googlecode-tools-stringer || $sudo_command $YUM install -y golang-bin # centos-7 epel
fi
# some go dependencies are stored in mercurial
$sudo_command $YUM install -y hg