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

Hand-written mutating commands have no `--dry-run`, and `cf deploy --dry-run` does not check required secrets

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

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

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

評価

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

調査の方向性

Start by locating the implementations for the six listed hand-written commands and comparing their help and dry-run behavior with generated commands. Then inspect the cf deploy --dry-run path for how it handles bindings.secret() and the bindings table. Done means each listed mutating command supports --dry-run, and dry-run reports missing required secrets and fails where the real run would fail on local information.

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

説明

cf version: 1.0.0-beta.5, macOS

1. Hand-written mutating commands have no --dry-run, unlike every generated command. None of these list it in --help:

  • cf d1 migrations apply
  • cf pages deploy
  • cf previews deploy
  • cf containers push
  • cf containers images delete
  • cf tunnels run

Wrappers and agents that rely on "try --dry-run first" can't do that for exactly the commands that change production state (migrations, deploys, deletes).

2. cf deploy --dry-run doesn't check required secrets. For a new Worker whose config declares bindings.secret() and no secret is set, cf deploy --dry-run prints "Dry run complete" and exits 0. The dry-run bindings table also leaves the secret out. The real deploy then fails.

Expected: --dry-run on every mutating command, and a dry-run that fails wherever the real run would fail on local information.

Related: cloudflare/workers-sdk#16109, cloudflare/cf#63.

Found while evaluating cf for a dev workflow: https://github.com/joeblew999/cf-cli-test (FINDINGS.md, findings/).

主要言語
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 を短くまとめたダイジェスト。