From 1f703689599ef597f801ec9b24cee83c449f59cc Mon Sep 17 00:00:00 2001
From: Andrew Morgan <andrew@amorgan.xyz>
Date: Thu, 20 Jun 2019 19:19:23 +0200
Subject: [PATCH] Make sure gomodule is enabled for CI that puts the repo in
 gopath

---
 .travis.yml  | 2 ++
 appveyor.yml | 1 +
 build.sh     | 2 +-
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 1f29379b..8e163d48 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,7 @@
 language: go
 go:
   - 1.11
+env:
+  - GO111MODULE=on
 script:
   - ./build.sh
diff --git a/appveyor.yml b/appveyor.yml
index 9998f75e..ac1032ab 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -23,6 +23,7 @@ install:
 
 build_script:
   - set GOBIN=%CD%/bin
+  - set GO111MODULE=on
   - go install -v ./cmd/...
 
 artifacts:
diff --git a/build.sh b/build.sh
index 8f1dd327..eed4d52f 100755
--- a/build.sh
+++ b/build.sh
@@ -1,3 +1,3 @@
 #!/bin/bash
 
-GO111MODULE=on GOBIN=$PWD/`dirname $0`/bin go install -v ./cmd/...
+GOBIN=$PWD/`dirname $0`/bin go install -v ./cmd/...
-- 
GitLab