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

`cf d1 migrations apply --local` does not exit while stdin is an open non-TTY pipe

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

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

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

評価

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

調査の方向性

Start at the cf d1 migrations apply CLI entry point and run the provided cat | cf d1 migrations apply ... --local reproduction. Trace the command's lifecycle after migrations are applied, then verify it exits with an open non-TTY pipe as well as with a TTY and /dev/null.

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

説明

Problem

cf d1 migrations apply <id> --local --persist-to <dir> prints that it applied the migrations, then does not exit while its stdin is an open non-TTY pipe (for example under a process supervisor or a script that runs it as a child with piped stdio). Under a TTY it exits, and it also exits with </dev/null. This may share a cause with #25, which hangs on a fresh state directory.

Reproduction

cat | cf d1 migrations apply 00000000000000000000000000000000 --local --persist-to /tmp/state --dir ./migrations

Migrations are applied, and the process keeps running until stdin closes.

Expected

The command exits after it finishes, whatever stdin is.

Environment

[email protected], macOS, Bun 1.4.2.

主要言語
TypeScript
スター
916
フォーク
53
平均マージ
19時間 13分
マージ済み PR(30日)
185

環境構築

はじめの一歩

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

cloudflare/cf のほかの issue

cloudflare/cf の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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