From ec199444ebbf0b7130dac53d8152981d56eb5c27 Mon Sep 17 00:00:00 2001 From: Simon Let Date: Fri, 24 May 2019 14:43:16 +0200 Subject: [PATCH] minor install improvement --- install_helper.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install_helper.sh b/install_helper.sh index 9e9e5fc..bc45cd9 100755 --- a/install_helper.sh +++ b/install_helper.sh @@ -52,6 +52,15 @@ else echo echo "===========================================================================" echo "Your Golang version is older than 1.11 - we can't use go modules for build!" + echo "It's RECOMMENDED to update your Golang! (press Ctrl+C and update Golang manually)" + + if [ "$(uname)" = "Linux" ]; then + . /etc/os-release + if [ "${ID}" = "ubuntu" ]; then + echo 'You can probably use `sudo snap install go --classic` to get latest Golang.' + fi + fi + echo echo "I will try to build the project using dep. (I will let you review each step.)" echo "Continue? (Any key to continue / Ctrl+C to cancel)" read x