Skip to content

Commit 553e045

Browse files
hsbtclaude
andcommitted
Print captured log on build_ruby failure
run_command writes configure/make/install output to a per-tag log file inside the build prefix, so a failure inside `docker build` only surfaces "fail <tag> <version>" and the actual error is lost with the discarded layer. Dump the log to stdout on failure so the cause is visible in Actions output. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6a9f8de commit 553e045

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Rakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,10 @@ class RubySource
243243
system(*command, opt)
244244
status = $?
245245
open(status_fn, "w") {|f| f.puts status.to_s.sub(/\Apid \d+ /, '') }
246-
print "fail #{tag} #{version}\n" if !status.success?
246+
if !status.success?
247+
print "fail #{tag} #{version}\n"
248+
$stdout.write(File.read(log_fn)) if File.exist?(log_fn)
249+
end
247250
status.success?
248251
end
249252

0 commit comments

Comments
 (0)