Replies: 3 comments 2 replies
-
You can try just resetting the current config with Or maybe force reinstall the package with |
Beta Was this translation helpful? Give feedback.
-
Thanks, I will try it later and show it's result. |
Beta Was this translation helpful? Give feedback.
-
只有修改 add_requires 用户端配置,才会触发包安装,修改包配置,不会触发。。 如果每次修改包都想触发,看下 https://xmake.io/#/zh-cn/guide/build_policies?id=packageinstall_always |
Beta Was this translation helpful? Give feedback.
-
Xmake 版本
xmake v2.8.5
操作系统版本和架构
Linux 720ce3a659a2 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
描述问题
定义了一个 lua-protobuf package,然后有其他库 add_requires("lua-protobuf")。修改了 lua-protobuf 依赖的 lua 版本提交到本地的 xmake-repo,然后本地 xmake repo -u 更新仓库。
但是 lua-protobuf 并不会更新,怀疑是 package 配置版本不变(~/.xmake/package后跟着的第二个路径)。
期待的结果
能不能在识别到 add_deps 版本有变化的时候重新编译,或者提供一个命令更新 package。目前的解法是 rm -rf ~/.xmake/packages/l/lua-protobuf/0db880c0f3e9cbb54d369e1dfbdb2b7f45454876/ 不够优雅。
工程配置
附加信息和错误日志
Beta Was this translation helpful? Give feedback.
All reactions