From 18872194af926ecfc3fb069946c0975ee34f8a7c Mon Sep 17 00:00:00 2001 From: James Shubin Date: Fri, 23 Aug 2019 22:10:34 -0400 Subject: [PATCH] misc: Warn users with weird computers A user seemed to experience a weird golang issue when they had deps from both package managers installed. I won't block or fail their install, but we can print a warning message so that someone sees it in their logs. --- misc/make-deps.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/misc/make-deps.sh b/misc/make-deps.sh index 821a7aec..b386e7b7 100755 --- a/misc/make-deps.sh +++ b/misc/make-deps.sh @@ -34,6 +34,11 @@ if [ -z "$YUM" -a -z "$APT" -a -z "$BREW" -a -z "$PACMAN" ]; then exit 1 fi +# I think having both installed confused golang somehow... +if [ ! -z "$YUM" ] && [ ! -z "$APT" ]; then + echo "You have both $APT and $YUM installed. Please check your deps manually." +fi + if [ ! -z "$YUM" ]; then $sudo_command $YUM install -y libvirt-devel $sudo_command $YUM install -y augeas-devel