diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2018-07-23 16:58:01 +0200 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2018-07-23 16:58:01 +0200 |
commit | f2fc4eb2e60fcfe06238f2a2ed2346db921d4fa7 (patch) | |
tree | 602caf84f0d22ad7c44a426dfc086f3c9c86658f | |
parent | e0a3516981e4167d33112942d13e82cf0fe5bc7e (diff) | |
download | gitlab-shell-doc-go-update-vendor.tar.gz |
rubocopdoc-go-update-vendor
-rwxr-xr-x | support/go-update-vendor | 2 | ||||
-rw-r--r-- | support/go_build.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/support/go-update-vendor b/support/go-update-vendor index 2f1dcf0..020bb87 100755 --- a/support/go-update-vendor +++ b/support/go-update-vendor @@ -8,7 +8,7 @@ include GoBuild def main(dependency) # Govendor wants to run in a GOPATH so let's make one for it. create_fresh_build_dir - run!(GO_ENV, %W[go get github.com/kardianos/govendor]) + run!(GO_ENV, %w[go get github.com/kardianos/govendor]) gitlab_shell_build_go_dir = File.join(BUILD_DIR, 'src', GO_PACKAGE) run!(GO_ENV, %W[govendor fetch #{dependency}], chdir: gitlab_shell_build_go_dir) diff --git a/support/go_build.rb b/support/go_build.rb index bf6cdb2..792ebc0 100644 --- a/support/go_build.rb +++ b/support/go_build.rb @@ -22,7 +22,7 @@ module GoBuild FileUtils.cp_r(File.join(ROOT_PATH, GO_DIR, '.'), build_source_dir) end - def run!(env, cmd, options={}) + 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) |