summaryrefslogtreecommitdiff
path: root/support/go_build.rb
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2019-10-09 02:20:36 +0000
committerAsh McKenzie <amckenzie@gitlab.com>2019-10-09 02:20:36 +0000
commite28f75c8d439812f61c4cf0c0291380df4d17106 (patch)
tree5e4ae582eb3aa506c57f954d2a1483fe5e003a2b /support/go_build.rb
parent1ee64eeaea71210e89040438489edac4701a1854 (diff)
parent1a3e687f772047988b9bcaeb471d94d6f49a853e (diff)
downloadgitlab-shell-e28f75c8d439812f61c4cf0c0291380df4d17106.tar.gz
Merge branch '173-remove-bin-install-command' into 'master'
Decouple `bin/compile` and `bin/install` from code in `lib/` See merge request gitlab-org/gitlab-shell!340
Diffstat (limited to 'support/go_build.rb')
-rw-r--r--support/go_build.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/go_build.rb b/support/go_build.rb
index 42e207a..6f4c92b 100644
--- a/support/go_build.rb
+++ b/support/go_build.rb
@@ -2,8 +2,8 @@
require 'fileutils'
-# This will set the ROOT_PATH variable
-require_relative '../lib/gitlab_init'
+# Determine the root of the gitlab-shell directory
+ROOT_PATH = ENV.fetch('GITLAB_SHELL_DIR', File.expand_path('..', __dir__))
module GoBuild
GO_DIR = File.join(ROOT_PATH, 'go')