Skip to content

Commit

Permalink
use absolute path for xrepo/includes
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jan 12, 2025
1 parent 229373a commit 2e9294e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
4 changes: 3 additions & 1 deletion xmake/modules/private/xrepo/action/download.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ function _download_packages(packages)
local rcfiles = {}
local includes = option.get("includes")
if includes then
table.join2(rcfiles, path.splitenv(includes))
for _, includefile in ipairs(path.splitenv(includes)) do
table.insert(rcfiles, path.absolute(includefile))
end
end

-- enter working project directory
Expand Down
4 changes: 3 additions & 1 deletion xmake/modules/private/xrepo/action/export.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ function _export_packages(packages)
local rcfiles = {}
local includes = option.get("includes")
if includes then
table.join2(rcfiles, path.splitenv(includes))
for _, includefile in ipairs(path.splitenv(includes)) do
table.insert(rcfiles, path.absolute(includefile))
end
end

-- enter working project directory
Expand Down
4 changes: 3 additions & 1 deletion xmake/modules/private/xrepo/action/fetch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ function _fetch_packages(packages)
local rcfiles = {}
local includes = option.get("includes")
if includes then
table.join2(rcfiles, path.splitenv(includes))
for _, includefile in ipairs(path.splitenv(includes)) do
table.insert(rcfiles, path.absolute(includefile))
end
end

-- enter working project directory
Expand Down
4 changes: 3 additions & 1 deletion xmake/modules/private/xrepo/action/install.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ function _install_packages(packages)
local rcfiles = {}
local includes = option.get("includes")
if includes then
table.join2(rcfiles, path.splitenv(includes))
for _, includefile in ipairs(path.splitenv(includes)) do
table.insert(rcfiles, path.absolute(includefile))
end
end

-- enter working project directory
Expand Down
4 changes: 3 additions & 1 deletion xmake/modules/private/xrepo/action/remove.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ function _remove_packages(packages)
local rcfiles = {}
local includes = option.get("includes")
if includes then
table.join2(rcfiles, path.splitenv(includes))
for _, includefile in ipairs(path.splitenv(includes)) do
table.insert(rcfiles, path.absolute(includefile))
end
end

-- enter working project directory
Expand Down

0 comments on commit 2e9294e

Please sign in to comment.