summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-01-14 00:44:52 +0800
committerruki <[email protected]>2025-01-14 00:44:52 +0800
commit774980f0d1a660d3f33c97c2fe4d31fb5128f59e (patch)
treeccfc2da5e8371a2f3ef67fa224e902ee18cae5dc /xmake/core/package/package.lua
parent876fc4cf4ea813f4a24c83e2aebb504fe9c22c29 (diff)
support sparse-checkout for git
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index f7b49db38..9c505fdb5 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -351,11 +351,19 @@ function _instance:url_version(url)
return self:extraconf("urls", url, "version")
end
--- get the excludes list of url for the archive extractor, @note need raw url
+-- get the excludes paths of url
+-- @note it supports the path pattern, but it only supports for archiver.
function _instance:url_excludes(url)
return self:extraconf("urls", url, "excludes")
end
+-- get the includes paths of url
+-- @note it does not support the path pattern, and it only supports for git url now.
+-- @see https://github.com/xmake-io/xmake/issues/6071
+function _instance:url_includes(url)
+ return self:extraconf("urls", url, "includes")
+end
+
-- get the http headers of url, @note need raw url
function _instance:url_http_headers(url)
return self:extraconf("urls", url, "http_headers")