Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Provide guarantees about portable path ordering

オープン
#130 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp

調査の方向性

issue ではファイルもテストも指定されていません。まず、パスの順序付けまたは比較のエントリーポイントと、既存のパス順序付けテストを見つけます。次に、オペレーティングシステム間でディレクトリ区切り文字がどのように比較されるかを確認します。相対パスに区切り文字が含まれる場合のテストで順序付けの保証がカバーされ、その保証が文書化されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement good first issue help wanted

In other ecosystems (e.g. Java), I was once surprised by the following behavior.

Say you have a list of relative paths (legally distinguishable on multiple operating systems, i.e. they don't have case conflicts and mix-ups), and you sort them.

In Java, there's no guarantee you'll have the same order on all operating systems, because / and \ have different sort order, and even if you have the same path letters, you'll have different order — say, items ["a/a", "a-a", "a.a"] vs ["a-a", "a.a", @"a\a"] might be sorted differently.

A particular problem I've had with this:

> listOf(
  java.nio.file.Path.of("commons"),
  java.nio.file.Path.of("com/x")
).sortedBy { it }
// => [commons, com\x]

> listOf(
  "commons",
  "com/x"
).sortedBy { it }
// => [com/x, commons]

TruePath should guarantee the same ordering for items involving directory separators (i.e. the directory separator should have the same ordering on all the operating systems), document this and cover by tests, of course.

主要言語
C#
スター
107
フォーク
22
平均マージ
3日 2時間
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ForNeVeR/TruePath のほかの issue

ForNeVeR/TruePath の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。