-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSS Gate Workshop: online:2021-10-30: tsutsuji86: YamlDotNet: Work log #1493
Comments
YamlDotNeetをやってみようと思います。 上記ページの上部にMIT Licenseと書かれている。 |
https://github.com/aaubry/YamlDotNet/wiki/Samples |
YamlDotNet にはライセンスファイルが2つあるようです。
念の為 LICENSE-libyaml についても調査すると、安心できそうです。 |
まずはこちらのサンプルを試してみる。 Visual Studio 2019 Communityで新規ソリューションYamlDotNetSampleを作成した。 そこに、C#コンソールの新規プロジェクトとして、Loading a YAML Streamを作成した。 |
https://github.com/aaubry/YamlDotNet/wiki 上記ページのInstallingには、パッケージマネージャーコンソールでのインストール方法 |
ちなみに、https://github.com/aaubry/YamlDotNet/wiki/Samples |
READMEのQuickstartの部分からリンクされている |
|
午後ちょっと試したところ、ビルドが通ってSampleのテストも実行することができた。 |
開発者の過去のブログをみると当時は、Console.WriteLineを使ったサンプルだった。 |
どうやらGitHubからクローニングしてできるmasterブランチにあるソリューションファイルではビルドできず、 |
README.mdのQuick startにある.NET Fiddleへのリンク先に示されたコードは、 この例題では、出力に「System.Console.WriteLine();」が使われているので、わかりやすい。 |
対象OSS: YamlDotNet Title: masterブランチではビルドできないが、unity-compatibleブランチだとビルドできる 再現手順
実際に起ったことYamlDotNet.gitをクローニングしてできるmasterブランチ(コミット:baa5b66)のソリューションでビルドすると、 エラーメッセージ unity-compatibleブランチをチェックアウトした場合(コミット:b7d71ec)、 もしかしたら、unityとの互換性を想定していないmasterブランチでunityに関連する機能を呼び出そうとしているのかもしれない。 期待される結果masterブランチでも、unity-compatibleブランチと同様にビルドできるとよい。 |
2つのファイルの違いは、著作権者の違いのようで、
|
対象OSS: YamlDotNet Title: masterブランチではビルドできないが、unity-compatibleブランチだとビルドできる。 再現手順
実際に起ったことYamlDotNet.gitをクローニングしてできるmasterブランチ(コミット:baa5b66)のソリューションでビルドすると、 unity-compatibleブランチをチェックアウトした場合(コミット:b7d71ec)、 2つのコミットを比較したところ、unity-compatibleブランチでは、BuildUtils.UnityPrerequisitesというフォルダにファイルが存在しているのに対して、masterブランチでは、ファイルが存在していないことが分かった。 また、同様の現象として、masterブランチでは、上記修正によりビルドが通った後に、ユニットテストの実行時にエラーが発生するが、 期待される結果masterブランチでも、unity-compatibleブランチと同様にビルドでき、ユニットテストもすべてパスできるようになるとよい。 |
Target OSS: YamlDotNet Title: Can not build in MASTER branch, but can be built in Unity-Compatible branch. Reproduction procedure
What happened actuallyWhen I build with the solution file of the master branch that can be cloned from git, On the other hand, when I checked out the Unity-Compatible branch (commit: B7D71EC), Comparing two commits, it was found that the unity-compatible branch has various files in the folder [buildutils.unityPrerequisites], whereas the master branch does not have those files in a same folder. Also, as a similar phenomenon, the master branch causes an error when the unit test is executed after the build passes through the above correction. Expected resultsmaster branch may be built as well as unity-compatible branch, and all unit tests may be passed. |
細かいことなんですが、コメントします。
能動態と受動態を混ぜる必要はないと思います、あとは build master branch でよくで in は要らないです。 あとは実際のブランチ名は小文字の master ですよね?それなら大文字にしなくていいです。 なので、 Title: I can not build master branch, but I can build unity-compatible branch. でどうでしょうか。
もっと単純に書いていいと思います。あとcommitのhash値が大文字で書いてあるのはWindowsだとそういう風に表示されるんでしょうか。 When I tried to bulid with the solution file of the master branch(baa5b66), a build error occured, but I was able to build unity-compatible branch (b7d71ec) without any problems.
普通に能動態で I found でいいと思います。受動態にする必要ないです。
I was able to build it. でいいんじゃないでしょうか。普通に主語は私 I で書けばいいと思いますよ。
Also だけでいいと思います。
unit tests on master branch fail even after I fixed the above bulid problem. (tests と複数形にしてみました。実際にテストが複数あるのかどうか知らないのですが)
私の感覚だと result で単数かなと思いました。まあそれは書いている人が何を考えているかを依りますが。
これは may じゃなくて should のほうがよくないですかね。 master branch should be buildable as well as unity-compatible branch and all unit tests should pass. こんなんでどうでしょうか。 |
これについては、そりゃビルドもテストも通ったほうがいいのは当たり前なんですが、shouldで言ってもなんか他のことで忙しい開発者にはキツく聞こえるかもしれません。これらの問題を解決するPRを送れば相手は悪い気はしないんじゃないかと思います。 |
should だとキツいなあという気が自分で書いておいてなんですが、そう思いますので、そうすると It would be nice if master branch was buildable as well as unity-compatible branch and all unit tests passed. と書けばいいかなあと思いました。 |
Target OSS: YamlDotNet Title: I can not build master branch, but I can built unity-compatible branch. Reproduction procedure
What happened actuallyWhen I tried to build with the solution file of the master branch (baa5b66), a build error occurred in YamlDotNet project., but I was able to build unity-compatible branch (b7d71ec) without any problems. Comparing two commits, I found that the unity-compatible branch has various files in the folder [buildutils.unityPrerequisites], whereas the master branch does not have those files in a same folder. Also, some unit tests on master branch failed even after I fixed the above build problem. Expected resultIt would be nice if master branch was buildable as well as unity-compatible branch and all unit tests passed. |
Tahara様 丁寧な添削と貴重なコメントありがとうございます。 Google翻訳を使った後に、自分なりに添削したつもりだったのですが、 また、技術的な話を書くのに、主語として私(I)を使ってはいけない、とか お忙しいところ、ご対応いただきありがとうございました。 |
添削後の報告文面を拝見しました。こちらで問題ないと自分は思いました! |
おつかれさまでした! ワークショップの終了にともないissueを閉じますが、このまま作業メモとして使っても構いません 👌 ワークショップの感想を集めています! ブログなどに書かれた際は、このページへリンクの追加をお願いします 🙏 またの参加をお待ちしています! |
This is a work log of a "OSS Gate workshop".
"OSS Gate workshop" is an activity to increase OSS developers.
Here's been discussed in Japanese. Thanks.
作業ログ作成時の説明
以下のテンプレートを埋めてタイトルに設定します。埋め方例はスクロールすると見えてきます。
タイトル例↓:
OSS Gateワークショップ関連情報
The text was updated successfully, but these errors were encountered: