Skip to content

Commit 8f41f53

Browse files
Merge pull request #52 from jonathanmorris180/fix/issue-48
fix: issue 48
2 parents afddd0e + 5d01238 commit 8f41f53

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lua/salesforce/diff.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ local function expand(t)
8282
end
8383

8484
local 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

Comments
 (0)