xmake icon indicating copy to clipboard operation
xmake copied to clipboard

xmake会优先找nix里面的包,然后由于网络问题会卡死

Open da-liii opened this issue 4 months ago • 3 comments

Xmake 版本

3.0.3 (使用nix安装的xmake)

操作系统版本和架构

Debian 13

描述问题

上述仓库:https://gitee.com/XmacsLabs/mogan

xmake config -vD --yes

卡在这个地方了:

finding liii-libaesgm from brew ..
checking for brew ... no
finding liii-libaesgm from nix ..
checking for nix ... /usr/bin/nix

期待的结果

有选项可以关闭 nix 的检测

工程配置

见 https://gitee.com/XmacsLabs/mogan

附加信息和错误日志

见上面

da-liii avatar Oct 17 '25 08:10 da-liii

Bot detected the issue body's language is not English, translate it automatically.


Title: xmake will first look for packages in nix, and then it will get stuck due to network problems.

Issues-translate-bot avatar Oct 17 '25 08:10 Issues-translate-bot

可以参考 https://github.com/xmake-io/xmake/issues/2033 这个,提供下栈信息。

dev 上我暂时移除默认的 nix 查找了,可以更新下。

@ZZBaron 可以看下这个问题。

waruqi avatar Oct 17 '25 12:10 waruqi

Thanks for reporting this issue. I'm currently investigating and trying to replicate this error.

We've made improvements to the Nix package manager integration since v3.0.3/3.0.4, including a rewrite of the Nix detection logic and more detailed logging. Could you please try with the latest version?

And if the issue persists could you provide the output of

XMAKE_PROFILE=stuck xmake config -vD --yes

as in #2033?

For an immediate workaround you can use the dev branch as the default nix lookup is now removed.

ZZBaron avatar Oct 19 '25 21:10 ZZBaron