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

Function not deleting even though cli says successful delete.

Open mbbender opened this issue 8 years ago • 8 comments

Version info

6.0.0

Platform Information

OS X

Steps to reproduce

  • Create a function and deploy it
  • Remove function and deploy to delete (Note: As a side issue, if it's the only function the console command for deploy was running to completion without stopping to allow me to choose Y to the delete question.) Make sure you have more than one function

Expected behavior

Function is deleted from console and does not continue to execute.

Actual behavior

The command line says the function deleted but it continues to operate. Running deploy again asks again to delete the function which appears to complete correctly, yet function still exists and executes.

It's a function being trigger by the firebase authentication user created trigger. debug2.log

mbbender avatar Oct 30 '18 17:10 mbbender

I see this behavior as well.

Can you confirm that if you use --force in your command, the function is deleted? I see that working as well and it should be a good workaround for the immediate future.

I'm filing an internal bug as well to follow up.

bkendall avatar Oct 30 '18 23:10 bkendall

Internal bug tracking number: 118707986

bkendall avatar Oct 30 '18 23:10 bkendall

Thanks. --force worked.

mbbender avatar Oct 31 '18 19:10 mbbender

--force works but the y/N yes option does remove the function

dustensalinas avatar Nov 01 '18 17:11 dustensalinas

@dustensalinas if the y/N prompt is working for you: what version of firebase-tools are you using?

firebase --version

bkendall avatar Nov 01 '18 21:11 bkendall

@bkendall my apologies for any confusion. I was trying to respond to a different bug where it wouldn't even allow the input and then ended up here. That particular issue was resolved with an uninstall and reinstall of firebase-tools.

The behavior previously in the bug is just a duplicate on my part, my apologies. It is NOT working without --force on 6.0.0 and 6.0.1 for me.

dustensalinas avatar Nov 01 '18 22:11 dustensalinas

Same here. The firebase CLI 6.0.0 and 6.0.1 is not deleting functions when prompts y/N. It just works when one uses --force.

leonardojobim avatar Nov 02 '18 01:11 leonardojobim

Thanks for the report. This should be fixed in https://github.com/firebase/firebase-tools/pull/1007.

kevinajian avatar Nov 09 '18 20:11 kevinajian