firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

firebase deploy --only function:somefunction does not give an error if this function does not exist

Open fabiank0 opened this issue 3 years ago • 2 comments

[REQUIRED] Environment info

firebase-tools: 9.16

Platform: macOS

[REQUIRED] Test case

The test case is to just try deploying a single function that is not in the project directory.

[REQUIRED] Steps to reproduce

firebase deploy --only functions:someFunctionThatDoesNotExist

[REQUIRED] Expected behavior

firebase tools should return an error or a message that deployment did not succeed.

[REQUIRED] Actual behavior

firebase tools returns the message "Deploy Complete". If using the --debug flag,

0 Functions Deployed
0 Functions Errored

is shown. Of course, this is something minor, but from a quick glance at the terminal it is not clear that the function did not deploy. This is especially the case if the only flag is used with multiple functions where there is a typo in only one of them.

fabiank0 avatar Aug 10 '21 10:08 fabiank0

Internal bug #209905520

inlined avatar Dec 09 '21 04:12 inlined

I hit this issue today as well. I expected an error to occur.

ottob avatar Jun 30 '22 21:06 ottob