Skip to content

Commit c3d03f9

Browse files
committed
fix is_host
1 parent 0204508 commit c3d03f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xmake/core/package/package.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ function _instance:cachedir()
784784
local name = self:displayname():lower():gsub("::", "_"):gsub("#", "_")
785785
local version_str = self:version_str()
786786
-- strip invalid characters on windows, e.g. `>= <=`
787-
if is_host("windows") then
787+
if os.is_host("windows") then
788788
version_str = version_str:gsub("[>=<]", "")
789789
end
790790
if self:is_local() then
@@ -813,7 +813,7 @@ function _instance:installdir(...)
813813
local version_str = self:version_str()
814814
if version_str then
815815
-- strip invalid characters on windows, e.g. `>= <=`
816-
if is_host("windows") then
816+
if os.is_host("windows") then
817817
version_str = version_str:gsub("[>=<]", "")
818818
end
819819
installdir = path.join(installdir, version_str)

0 commit comments

Comments
 (0)