为什么我运行node-waf build后有一个.lock-wscript文件
在运行 node-waf configure
和 node-waf build
后,我的文件夹中显示了 .lock-wscript
,这是什么?即使我运行node-waf clean
,它仍然存在。我应该保留它还是删除它?
after I run node-waf configure
and node-waf build
, a .lock-wscript
show in my folder, what's this? even I run node-waf clean
, it still there. shall I keep it or remove it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Node 使用(使用?)Waf 作为其构建系统,并且 .lock- Waf 使用 wscript 文件来了解项目的源目录和构建目录的位置。锁定文件在您运行
waf configure
时创建,并在您运行waf distclean
时删除。后一个命令还会删除构建目录。如果删除 .lock-wscript 文件,则必须运行
node-waf configure
才能再次构建项目。除此之外,删除它并没有真正的危害,但它也不会占用太多磁盘空间:-)Node uses (used?) Waf as its build system, and the .lock-wscript file is used by Waf to know where the project's source and build directories are. The lock file is created when you run
waf configure
and is deleted when you runwaf distclean
. This latter command also deletes the build directory.If you delete the .lock-wscript file then you will have to run
node-waf configure
before you can build the project again. Apart from that there's no real harm deleting it, but then it doesn't take up much disk space either :-)