Skip to content

Commit b509bae

Browse files
committed
fix cachedir
1 parent 5ac4306 commit b509bae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmake/core/package/package.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ function _instance:cachedir()
859859
local name = self:displayname():lower():gsub("::", "_"):gsub("#", "_")
860860
local version_str = self:version_str()
861861
-- strip invalid characters on windows, e.g. `>= <=`
862-
if os.is_host("windows") then
862+
if version_str and os.is_host("windows") then
863863
version_str = version_str:gsub("[>=<|%*]", "")
864864
end
865865
if self:is_local() then

0 commit comments

Comments
 (0)