diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-07-24 13:17:52 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-07-24 13:17:52 +0000 |
commit | bcff3f3bb431c013000c83b6fce8f228429cf0d8 (patch) | |
tree | 84ac83633d1029b9ce3400714e16f6220ee3a3a0 /support/go_build.rb | |
parent | f59cd678e22c02a8f5a474bb982c22cdde0134c1 (diff) | |
download | gitlab-shell-bcff3f3bb431c013000c83b6fce8f228429cf0d8.tar.gz |
Add script to update vendored go libs
Diffstat (limited to 'support/go_build.rb')
-rw-r--r-- | support/go_build.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/go_build.rb b/support/go_build.rb index 30a6b71..792ebc0 100644 --- a/support/go_build.rb +++ b/support/go_build.rb @@ -22,11 +22,11 @@ module GoBuild FileUtils.cp_r(File.join(ROOT_PATH, GO_DIR, '.'), build_source_dir) end - def run!(env, cmd) + def run!(env, cmd, options = {}) raise "env must be a hash" unless env.is_a?(Hash) raise "cmd must be an array" unless cmd.is_a?(Array) - unless system(env, *cmd) + unless system(env, *cmd, options) abort "command failed: #{env.inspect} #{cmd.join(' ')}" end end |