diff options
Diffstat (limited to 'support/go_build.rb')
-rw-r--r-- | support/go_build.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/support/go_build.rb b/support/go_build.rb index 82f94d2..1202dd2 100644 --- a/support/go_build.rb +++ b/support/go_build.rb @@ -6,14 +6,14 @@ require 'fileutils' require_relative '../lib/gitlab_init' module GoBuild - GO_DIR = 'go' + GO_DIR = 'go'.freeze BUILD_DIR = File.join(ROOT_PATH, 'go_build') GO_PACKAGE = File.join('gitlab.com/gitlab-org/gitlab-shell', GO_DIR) GO_ENV = { 'GOPATH' => BUILD_DIR, 'GO15VENDOREXPERIMENT' => '1', - } + }.freeze def create_fresh_build_dir FileUtils.rm_rf(BUILD_DIR) @@ -25,7 +25,7 @@ module GoBuild def run!(env, cmd) raise "env must be a hash" unless env.is_a?(Hash) raise "cmd must be an array" unless cmd.is_a?(Array) - + if !system(env, *cmd) abort "command failed: #{env.inspect} #{cmd.join(' ')}" end |