Skip to content

Commit

Permalink
Merge pull request #6066 from xmake-io/xrepo
Browse files Browse the repository at this point in the history
use absolute path for xrepo/includes
  • Loading branch information
waruqi authored Jan 13, 2025
2 parents bc44224 + 2e9294e commit aa5cdd8
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 aa5cdd8

Please sign in to comment.