Building solution with --runtime fails with error LIB003
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- bootstrap, csharp, jquery
- 领域
- build-system, devtools
调研方向
Start by reproducing the failure with libman.json and the two dotnet restore/build commands in the microsoft/dotnet:2.2.103-sdk-nanoserver-1809 container, comparing builds with and without --runtime win-x64. Check whether concurrent restores from the test projects target the same files; done means the solution builds successfully with --runtime and no LIB003 errors.
由索引模型根据 Issue 内容生成。
描述
Functional impact
Build fails in CI server
Minimal repro steps
I have a build pipeline that runs each step in the nano sdk container on Windows 2019 (microsoft/dotnet:2.2.103-sdk-nanoserver-1809). The source code folder is mapped into the container as a volume.
My solution contains a web project, a couple of support projects and a couple of test projects that depend on the web project
- dotnet restore my.sln --configuration release --runtime win-x64
- dotnet build my.sln --configuration release --runtime win-x64 --no-restore
Step 2 fails with multiple instances of error LIB003, each for a different file. The files in question are present
libman.json : error LIB003: css/bootstrap-grid.min.css.map could not be written to disk. Make sure the file name is correct
Expected result
The build would work
Further technical details
- Running a LibMan CLI step before the build to restore the packages doesn't solve the issue
- Removing the
--runtime win-x64option works. - Doing the build on the web project works.
My guess is that there's a race condition between concurrent downloads of the packages caused by builds of the test projects. When --runtime is specified the output shows 2 instances of
Restoring library twitter-bootstrap@4.3.1...
Restoring library jquery@3.3.1...
Restoring library jquery-validate@1.19.0...
Restoring library jquery-validation-unobtrusive@3.2.11...
Restoring library popper.js@1.14.7...
5 libraries restored in 0.18 seconds
whereas without it only 1 restore is done.
- 主要语言
- C#
- 星标
- 486
- 派生
- 91
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aspnet/LibraryManager 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
aspnet/LibraryManager#824 · 1 条评论 · 3 个 reaction ·
-
难度 1/5 1 小时以内 新手友好度 68/100
aspnet/LibraryManager#804 · 2 个 reaction ·
-
难度 1/5 1 小时以内 新手友好度 48/100
aspnet/LibraryManager#829 · 1 条评论 · 3 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 42/100
aspnet/LibraryManager#820 ·
-
难度 4/5 3-5 天 新手友好度 35/100
aspnet/LibraryManager#808 · 5 条评论 ·
查看 aspnet/LibraryManager 的全部 Issue
相似的 Issue
-
effort:S P3 refactor
难度 2/5 1-3 小时 新手友好度 75/100
nightscout/nocturne#1532 ·
-
core dependencies
难度 1/5 1 小时以内 新手友好度 80/100
-
documentation
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
DotNetNext/SqlSugar#1458 ·