summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2019-06-17 11:38:41 +0200
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2019-06-17 11:38:41 +0200
commit636ce937115214bc0b2938c9f4bbe278c5907e77 (patch)
tree3caa9f848427b82e57528acc981df90d6b7a7148
parentd18543c7e3b850001a5b72822864c6d68ba17fbe (diff)
downloadgitlab-shell-636ce937115214bc0b2938c9f4bbe278c5907e77.tar.gz
Set Go111MODULE to 'off' during compilation
Given more to the Go community moves to Go modules, one might default to GO111MODULE to on in their environment. If this is done, this project fails to compile. By setting the environment for the compilation this is fixed.
-rw-r--r--support/go_build.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/support/go_build.rb b/support/go_build.rb
index 792ebc0..d11cc38 100644
--- a/support/go_build.rb
+++ b/support/go_build.rb
@@ -12,7 +12,8 @@ module GoBuild
GO_ENV = {
'GOPATH' => BUILD_DIR,
- 'GO15VENDOREXPERIMENT' => '1'
+ 'GO15VENDOREXPERIMENT' => '1',
+ 'GO111MODULE' => 'off'
}.freeze
def create_fresh_build_dir