这是indexloc提供的服务,不要输入任何密码
Skip to content

Deploying functions with failurePolicy should not always require --force #798

@rbruggem

Description

@rbruggem

Related issues

The comment explains how it should work.

#425 (comment)

[REQUIRED] Version info

node: 10.18.1

firebase-functions: 3.11.0

firebase-tools: 8.12.0

8.12.0

firebase-admin: 8.6.0

[REQUIRED] Test case

firebase deploy --only functions:THEFUNCTION errors with:
Error: Pass the --force option to deploy functions with a failure policy

[REQUIRED] Steps to reproduce

Add failurePolicy: { retry: {} } to an existing function which does not have a failure policy set.

[REQUIRED] Expected behavior

Running firebase deploy --only functions:THEFUNCTION would deploy the function successfully without the use of --force.

[REQUIRED] Actual behavior

Error: Pass the --force option to deploy functions with a failure policy

Were you able to successfully deploy your functions?

Only with --force which is not ideal to have in a CICD pipeline.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions