From fffa3df3ad2a607a6760ff2fd3cf41ba477f68c6 Mon Sep 17 00:00:00 2001
From: Cassiano Aquino <cassianoaquino@me.com>
Date: Wed, 2 Oct 2019 18:05:32 +0100
Subject: [PATCH] override goroot

---
 .travis.yml            | 3 ++-
 builder/pwnagotchi.yml | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 9d1a188..cd74215 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,8 +20,9 @@ cache:
 
 before_script:
 - sudo apt-get -y update
-- sudo apt-get -y install qemu-user-static binfmt-support qemu kpartx
+- sudo apt-get -y install qemu-user-static binfmt-support qemu gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-arm-static kpartx
 - sudo update-binfmts --display
+- cat /etc/ld.so.preload
 
 script:
 - sudo -E env "PATH=$PATH" make -e PWN_HOSTNAME="pwnagotchi" VERSION="$TRAVIS_TAG"
diff --git a/builder/pwnagotchi.yml b/builder/pwnagotchi.yml
index 0672002..4d086bc 100644
--- a/builder/pwnagotchi.yml
+++ b/builder/pwnagotchi.yml
@@ -117,6 +117,7 @@
     command: go get -u github.com/bettercap/bettercap
     environment:
       GOPATH: /root/go
+      GOROOT: /usr/lib/go
 
   - name: install bettercap
     copy: