mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
17 lines
584 B
Diff
17 lines
584 B
Diff
diff --git a/support/go_build.rb b/support/go_build.rb
|
|
index 30a6b71..46b4dfa 100644
|
|
--- a/support/go_build.rb
|
|
+++ b/support/go_build.rb
|
|
@@ -26,8 +26,8 @@ module GoBuild
|
|
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
|
|
+ puts "Starting #{env.inspect} #{cmd.join(' ')}"
|
|
+ Process::wait(Process::spawn(env, *cmd))
|
|
+ abort "command failed: #{env.inspect} #{cmd.join(' ')}" unless $?.exitstatus == 0
|
|
end
|
|
end
|