`NOB_EXPERIMENTAL_DELETE_OLD` on Windows
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- c
- 领域
- build-system
调研方向
Start with the Windows reproduction in nob.h using the C program, NOB_EXPERIMENTAL_DELETE_OLD, and cl.exe shown in the issue. Trace the rename and deletion steps around nob.exe.old, then verify that rebuilding completes without the access-denied error and that the old executable is removed.
由索引模型根据 Issue 内容生成。
描述
I caught the request for someone to test NOB_EXPERIMENTAL_DELETE_OLD on Windows on stream, but I didn't see the whole thing so not sure if this was already done; apologies if so.
I tried it out with 1.23.0 with the following program and found that for me it doesn't work:
#define NOB_IMPLEMENTATION
#define NOB_EXPERIMENTAL_DELETE_OLD
#include "nob.h"
int main(int arg, char **argv) {
NOB_GO_REBUILD_URSELF(arg, argv);
nob_log(NOB_INFO, "Hello, World!");
return 0;
}
$ nob
[INFO] renaming nob.exe -> nob.exe.old
[INFO] CMD: cl.exe /Fe:nob.exe nob.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.44.35213 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
nob.c
Microsoft (R) Incremental Linker Version 14.44.35213.0
Copyright (C) Microsoft Corporation. All rights reserved.
/out:nob.exe
nob.obj
[INFO] deleting nob.exe.old
[ERROR] Could not delete file nob.exe.old: Access is denied.
[INFO] CMD: nob.exe
[INFO] Hello, World!
- 主要语言
- C++
- 星标
- 3.4k
- 派生
- 216
- 平均合并
- 8 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tsoding/nob.h 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
nob__walk_dir_opt_impl() tries to close zeroed handle for non directory entries可能已有人在做 @whophi 于 91 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
-
nob_get_file_type error check is dead code: nob_copy_directory_recursively aborts and nob_walk_dir returns true on unreadable paths可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 1/5 1 小时以内 新手友好度 76/100
相似的 Issue
-
bug libcudf
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
level/task module/cloud monitoring type/maintenance
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
LadybirdBrowser/ladybird#13809 ·
维护者通常 1 天内回复
-
bug module:nodes tests
难度 2/5 1-3 小时 新手友好度 78/100
rocketride-org/rocketride-server#3020 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 9 天内回复