Add RemoveAll to Basic Interface?
まだ誰も着手していません。
評価
調査の方向性
まず既存の filesystem インターフェースと osfs/os_bound.go を読み、その後、提案されている動作を issue に記載された RepositoryFilesystem の変更と比較してください。スコープはまだ決まっていません。互換性を維持する RemoveAll インターフェースの設計について合意し、関連する実装変更も行うことが完了条件です。
索引モデルが issue の本文から書いたものです。
説明
I was wanting to call the equivalent of os.RemoveAll(...) on a worktree's filesystem and ended up implementing support for it here and in go-git (the latter was a trivial change only in RepositoryFilesystem; would this change be welcomed here?
I suspect ideally this would be implemented as an optional additional interface to not break backwards compatibility (existing user would have to implement the interface on upgrade), but maybe it would be best for a v6 to simplify the interface? Thoughts?
I also ended up implementing a non-chroot'd version (similar to osfs/os_bound.go, but taking into account an arbitrary $PWD different from the actual $PWD at the time of execution), but I'm not sure that changeset has relevance outside of my use case. :-) Let me know if it is also of interest though!
- 主要言語
- Go
- スター
- 433
- フォーク
- 83
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
go-git/go-billy のほかの issue
-
osfs: RootOS.ReadDir does not sort entries by filename対応中かも @erka が 192 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
osfs: BoundOS.Stat fails when the base dir is a symlink to outside its parent対応中かも @jLopezbarb が 19 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 20/100
-
memfs: independent O_APPEND handles silently overwrite earlier writes対応中かも @harbinresearcher が 41 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
-
Building on Plan 9 stopped working, which breaks github.com/u-root/cpu対応中かも @rminnich が 159 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
go-git/go-billy の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
alibaba/MongoShake#1077 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mattermost/mattermost-plugin-jira#1397 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 3 日以内に返信
-
Add Free CS Systems Workshops, Starter Scaffolds & Zero-Dependency Verification CLI to CS Seriesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100