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

🤖 A workspace name that starts with a dash passes validation, then fails with a raw git error

クローズ 初心者向け
#5,686 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

関連するプルリクエストがすでにマージされています。

  • #5726 @ThomasK33 による — マージ済み

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
git, typescript

調査の方向性

まず src/common/utils/validation/workspaceValidation.ts から始めて、両方の名前バリデーターを読みます。次に、WorktreeManager.ts がブランチ名を git に渡す方法を確認します。関連するバリデーションテストを実行し、- で始まる名前が、/ の後に続く場合も含めて、フォームとバックエンドの両方で拒否されることを確認します。

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

説明

bug

Problem: Creating a workspace named -dash- passes the form check, then fails with git's "unknown switch" error.

Cause: the name patterns in src/common/utils/validation/workspaceValidation.ts accept a leading -. WorktreeManager.ts passes ["-b", branchName, ...] to git, which reads the name as options.

Fix idea: require the first character, and the first character after each /, to be [a-z0-9_] in both validators. The form and the backend use them, so both reject the name.

Priority P3 (the error is clear enough that no data is lost). Size S.

Found by the agent bug bashes in #5670 (pre-existing, outside that PR's changes).


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

主要言語
TypeScript
スター
2k
フォーク
140
平均マージ
5時間 59分
マージ済み PR(30日)
935

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

coder/xum のほかの issue

coder/xum の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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