Deploy fails with prisma ≥ 8.0.0-rc.30: --stage has been replaced by --environment

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
bun, github-actions, javascript, node.js
領域
ci-cd, devops

調査の方向性

The failing command is built in the action's deploy step, where it passes --stage to prisma deploy; search the repository for --stage to find that call. Check how the CLI version is resolved and whether the flag can be switched to --environment for newer prisma versions while keeping older ones working. Done when the deploy step runs with prisma 8.0.0-rc.33 and older pinned versions still pass a test or manual run.

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

説明

The action runs prisma deploy --entry <module> --stage <stage>. The Prisma CLI removed --stage in 8.0.0-rc.30, so repos with a newer local prisma devDependency fail at the deploy step. The build step succeeds first.

Steps to reproduce

  1. Add "prisma": "8.0.0-rc.33" to the repo's devDependencies.
  2. Use the action with module: module.mjs.
  3. Push a branch.

Actual behavior

$ bun run --bun prisma deploy --entry module.mjs --stage my-branch
✘ [CLI.COMMAND_MOVED] `--stage` on `deploy` has been replaced
  why: A place the app runs is now called an environment.
→ Use the replacement: prisma deploy --environment <name>
error: "prisma" exited with code 2
##[error]deploy failed: ... exited with status 2

Expected behavior

The action deploys with the CLI version the repo has installed.

Environment

  • Action: prisma/cloud-deploy-action@v1 (resolves to v1.10.0, 5e15880)
  • prisma: 8.0.0-rc.33
  • @prisma/composer: 0.38.0
  • Runner: ubuntu-latest, Node 24, bun 1.3.13
主要言語
JavaScript
スター
2
フォーク
6
平均マージ
1日 14時間
マージ済み PR(30日)
4

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

似ている issue

JavaScript の issue をもっと見る

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

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