Fresh clone of repository results in many compilation errors
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 28/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- csharp
- 領域
- build-system
調査の方向性
新しい clone から始めてリポジトリのビルドを試行し、その後、報告されているコンパイルおよびパッケージソースの失敗に照らして .editorconfig、Directory.Build.props、nuget.config を確認します。README でビルドの前提条件を確認し、新しい checkout がローカルで編集せずにビルドできるよう、リポジトリの構成を文書化または修正します。
索引モデルが issue の本文から書いたものです。
説明
I want to investigate implementing S3 compatibility for this. As an initial stab I wanted to get this compiled and working in my local environment. I tested this about a year ago and it worked fine but since then it seems like there have been some regressions.
I wanted to outline the fixes I had to implement to get this compiling in hopes that someone more familiar with the repository can provide guidance on the correct fixes for the main branch.
https://github.com/microsoft/MSBuildCache/blob/c1faabb1d036689b2421342ccf1e747d96ab2cf5/.editorconfig#L377
Had to change that to dotnet_diagnostic.IDE0055.severity = none # Fix formatting because there were a significant amount of errors after opening the solution.
https://github.com/microsoft/MSBuildCache/blob/c1faabb1d036689b2421342ccf1e747d96ab2cf5/Directory.Build.props#L37
Had to update this to ignore security vulnerability errors <NoWarn>$(NoWarn);NU5104;NU1901;NU1902;NU1903</NoWarn>. There were a lot of NuGet packages being flagged for vulnerabilities and preventing compilation.
The NuGet.config (https://github.com/microsoft/MSBuildCache/blob/main/nuget.config) had to be updated because it was failing to retrieve packages.
I had to do this:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="nuget" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="msbuildcache" value="https://pkgs.dev.azure.com/msbuildcache/public/_packaging/msbuildcache/nuget/v3/index.json" />
</packageSources>
<packageSourceMapping>
<clear />
<packageSource key="nuget">
<package pattern="*" />
</packageSource>
<packageSource key="msbuildcache">
<package pattern="RocksDb*" />
<package pattern="Microsoft.BuildXL*" />
<package pattern="Microsoft.Windows.Debuggers*" />
</packageSource>
</packageSourceMapping>
</configuration>
If there is something I missed that should have prevented the need to make these changes it would be appreciated if that could be called out in the README (or maybe I missed it altogether). If these are actual errors then I'm happy to help open PRs to try and fix the issues if a repository owner has guidance on what the correct fixes are.
- 主要言語
- C#
- スター
- 64
- フォーク
- 24
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/MSBuildCache のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
microsoft/MSBuildCache#154 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
microsoft/MSBuildCache#164 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
microsoft/MSBuildCache#167 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/MSBuildCache#159 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
microsoft/MSBuildCache#155 · コメント 1 件 ·
microsoft/MSBuildCache の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
Type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
apache/arrow-adbc#4809 ·
-
type/automation type/tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
microsoft/vscode-azurefunctions#5197 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
microsoft/microsoft-ui-reactor#1274 ·