Deploy fails with prisma ≥ 8.0.0-rc.30: --stage has been replaced by --environment
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- bun, github-actions, javascript, node.js
调研方向
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
- Add
"prisma": "8.0.0-rc.33"to the repo's devDependencies. - Use the action with module: module.mjs.
- 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 小时
- 30 天内合并 PR
- 4
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
相似的 Issue
-
Toast announcer reads a doubled period when a toast's title ends in punctuation可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1 小时以内 新手友好度 88/100
vercel-labs/ui#999 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
gcivil-nyu-org/team5-mon-fall26#152 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
router-for-me/models#105 ·
维护者通常 1 天内回复
-
[Prisma 8] Type-check time grows exponentially with chained .include() calls可能已有人在做 @SiKreuz 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复