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

Add the ability to ability to skip deploying no-op functions

Open TheIronDev opened this issue 2 years ago • 1 comments

This function adds the ability to skip deploying functions that have not changed.

A common usecase for this is a user that only updated their hosting files (/public) and then ran firebase deploy.

Actionable Items:

  • [x] Hash function
  • [x] Hash used .env
  • [x] Hash secret versions
  • [ ] Add a firebase-cli-upload-hash label
  • [ ] Fetch the labels of the latest uploaded function
  • [ ] Short-circuit upload if hashes match
  • [ ] Skip short-circuit if the user has --force
  • [ ] Display cli messaging informing functions were not updated (but they can force it)

TheIronDev avatar Jun 27 '22 16:06 TheIronDev

Please ping when I should give this another look.

inlined avatar Aug 09 '22 05:08 inlined

Closing this pull request while I implement functionality in smaller chunks.

TheIronDev avatar Aug 16 '22 20:08 TheIronDev