summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-02 10:33:48 +0800
committerGitHub <[email protected]>2025-12-02 10:33:48 +0800
commitf4533a6c109732c983329d5121929b9635409a3d (patch)
treea242333335bdac66c70958b0612981f67d1fa5a0
parent92b61ab2648cc37da47874a4bab4d487a9a01202 (diff)
parente262e6f9f3d0e1a1d60a66627ea5b56f4731f8a6 (diff)
Merge pull request #7087 from Willaaaaaaa/patch-251201
Add type constraint for policy `package.download.http_headers`
-rw-r--r--xmake/core/project/policy.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/project/policy.lua b/xmake/core/project/policy.lua
index d2aca60cb..6a3393cce 100644
--- a/xmake/core/project/policy.lua
+++ b/xmake/core/project/policy.lua
@@ -148,7 +148,7 @@ function policy.policies()
-- Install packages in the local project folder
["package.install_locally"] = {description = "Install packages in the local project folder.", default = false, type = "boolean"},
-- Set custom headers when downloading package
- ["package.download.http_headers"] = {description = "Set the custom http headers when downloading package."},
+ ["package.download.http_headers"] = {description = "Set the custom http headers when downloading package.", type = "table"},
-- Use includes as external header files? e.g. -isystem ..
["package.include_external_headers"] = {description = "Use includes as external headers.", type = "boolean"},
-- Inherit the configs from the external command arguments, e.g. toolchains, `xmake f --toolchain=`