diff --git a/lib/mrsk/configuration/builder.rb b/lib/mrsk/configuration/builder.rb index 46c12cb4..d0d67a15 100644 --- a/lib/mrsk/configuration/builder.rb +++ b/lib/mrsk/configuration/builder.rb @@ -83,10 +83,6 @@ def cache_to private def valid? - if @options["local"] && !@options["remote"] - raise ArgumentError, "You must specify both local and remote builder config for remote multiarch builds" - end - if @options["cache"] && @options["cache"]["type"] raise ArgumentError, "Invalid cache type: #{@options["cache"]["type"]}" unless ["gha", "registry"].include?(@options["cache"]["type"]) end diff --git a/test/configuration/builder_test.rb b/test/configuration/builder_test.rb index 1b355187..45c1e2c2 100644 --- a/test/configuration/builder_test.rb +++ b/test/configuration/builder_test.rb @@ -44,14 +44,6 @@ class ConfigurationBuilderTest < ActiveSupport::TestCase assert_nil @config.builder.remote_host end - test "remote config is missing when local is specified" do - @deploy_with_builder_option[:builder] = { "local" => { "arch" => "arm64", "host" => "unix:///Users/<%= `whoami`.strip %>/.docker/run/docker.sock" } } - - assert_raises(ArgumentError) do - @config_with_builder_option.builder - end - end - test "setting both local and remote configs" do @deploy_with_builder_option[:builder] = { "local" => { "arch" => "arm64", "host" => "unix:///Users/<%= `whoami`.strip %>/.docker/run/docker.sock" },