Closed
[Bug]: 修改应用 hvigor_cache存储路径 #4329
hostedAdd on Dec 31, 2025Closed at Jan 4
Dec 31, 2025 Added label: bug
openharmony_ci
Dec 31, 2025 Comments:
Dec 31, 2025 Comments:
感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 [@handyohos](https://gitcode.com/handyohos) [@csliutt-private](https://gitcode.com/csliutt-private) [@ringking0](https://gitcode.com/ringking0) 。如果需要调整订阅PR、Issue的变更状态,请访问链接。
Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer gitcode for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.


Dec 31, 2025 Added label: waiting_for_assign
Dec 31, 2025 Associated pull request
Jan 4 Close issue
感谢对OpenHarmony社区的支持与关注,欢迎反馈缺陷。
发生了什么问题?
当前应用的缓存路径, 是基于CACHE_BASE环境变量 + hvigor_cache目录 + 应用代码路径,
在编译时,应用代码路径options.cwd传递的是以root_build_dir为基线的相对路径,会存在
../../前缀,路径直接进行拼接,会将缓存存放在预期目录之外期望行为是什么?
应用生成的缓存在预期的CACHE_BASE环境变量 + hvigor_cache目录 内
如何复现该缺陷
--gn-args use_hvigor_cache=true,使能hvigor缓存,可查看hvigor编译缓存的实际路径
其他补充信息
版本或分支信息
[x] master
[ ] Release 6.0
[ ] Release 5.1.0
[ ] Release 5.0.3
[ ] Release 4.1
[ ] Other