Warn on missing builder
We are going to try to create a builder if one is missing, so let's warn rather than report it as an error.
This commit is contained in:
@@ -30,7 +30,7 @@ class Kamal::Cli::Build < Kamal::Cli::Base
|
||||
end
|
||||
rescue SSHKit::Command::Failed => e
|
||||
if e.message =~ /(no builder)|(no such file or directory)/
|
||||
error "Missing compatible builder, so creating a new one first"
|
||||
warn "Missing compatible builder, so creating a new one first"
|
||||
|
||||
if cli.create
|
||||
KAMAL.with_verbosity(:debug) { execute *KAMAL.builder.push }
|
||||
|
||||
@@ -34,7 +34,7 @@ class CliBuildTest < CliTestCase
|
||||
.returns(true)
|
||||
|
||||
run_command("push").tap do |output|
|
||||
assert_match /Missing compatible builder, so creating a new one first/, output
|
||||
assert_match /WARN Missing compatible builder, so creating a new one first/, output
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user