diff options
-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) |