@@ -82,7 +82,7 @@ local function expand(t)
8282end
8383
8484local function execute_job (args )
85- local all_args = { " project" , " retrieve" , " start" , " --ignore-conflicts " , unpack (expand (args )) } -- always ignore when retrieving temp files
85+ local all_args = { " project" , " retrieve" , " start" , " --unzip " , unpack (expand (args )) } -- always ignore when retrieving temp files
8686 table.insert (all_args , " --json" )
8787 Debug :log (" diff.lua" , " Command: " )
8888 Debug :log (" diff.lua" , all_args )
@@ -127,12 +127,10 @@ M.diff_with_org = function()
127127
128128 Util .clear_and_notify (string.format (" Diffing %s with org %s..." , file_name , default_username ))
129129 temp_dir = vim .fn .tempname ()
130- local temp_dir_with_suffix = temp_dir .. " /main/default"
131- vim .fn .mkdir (temp_dir_with_suffix , " p" )
132130 Debug :log (" diff.lua" , " Created temp dir: " .. temp_dir )
133131 local args = {
134132 [" -m" ] = string.format (" %s:%s" , metadataType , file_name_no_ext ),
135- [" -r " ] = temp_dir ,
133+ [" --target-metadata-dir " ] = temp_dir , -- See https://github.com/forcedotcom/cli/issues/3009
136134 [" -o" ] = default_username ,
137135 }
138136
0 commit comments