File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -783,8 +783,8 @@ function _instance:cachedir()
783
783
--
784
784
local name = self :displayname ():lower ():gsub (" ::" , " _" ):gsub (" #" , " _" )
785
785
local version_str = self :version_str ()
786
- if self : is_thirdparty () then
787
- -- strip `>= <=`
786
+ -- strip invalid characters on windows, e.g. `>= <=`
787
+ if is_host ( " windows " ) then
788
788
version_str = version_str :gsub (" [>=<]" , " " )
789
789
end
790
790
if self :is_local () then
@@ -812,8 +812,8 @@ function _instance:installdir(...)
812
812
end
813
813
local version_str = self :version_str ()
814
814
if version_str then
815
- if self : is_thirdparty () then
816
- -- strip `>= <=`
815
+ -- strip invalid characters on windows, e.g. `>= <=`
816
+ if is_host ( " windows " ) then
817
817
version_str = version_str :gsub (" [>=<]" , " " )
818
818
end
819
819
installdir = path .join (installdir , version_str )
You can’t perform that action at this time.
0 commit comments