Skip to content

Deploying specific functions does not work with version 13.0.2 #6672

Closed

Description

@jcurlier

Environment info

firebase-tools:

13.0.2

Platform:

Mac, Ubuntu

Steps to reproduce

npx firebase deploy --only functions:querySortedActivities --non-interactive

[REQUIRED] Expected behavior

Working with version 12.9.1

=== Deploying to 'firebase-auratech16'...

i  deploying functions
i  functions: preparing codebase default for deployment
i  functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i  functions: ensuring required API cloudbuild.googleapis.com is enabled...
i  artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled...
✔  functions: required API cloudbuild.googleapis.com is enabled
✔  artifactregistry: required API artifactregistry.googleapis.com is enabled
✔  functions: required API cloudfunctions.googleapis.com is enabled
i  functions: Loading and analyzing source code for codebase default to determine what to deploy
Serving at port 8357

i  functions: preparing functions directory for uploading...
i  functions: packaged /Users/jeromecurlier/Development/Aura/Functions/FirebaseJob/functions (152.91 KB) for uploading
i  functions: ensuring required API cloudscheduler.googleapis.com is enabled...
✔  functions: required API cloudscheduler.googleapis.com is enabled
✔  functions: functions folder uploaded successfully
i  functions: updating Node.js 20 (1st Gen) function querySortedActivities(us-central1)...
✔  functions[querySortedActivities(us-central1)] Successful update operation.
i  functions: cleaning up build files...

✔  Deploy complete!

Project Console: https://console.firebase.google.com/project/firebase-auratech16/overview

[REQUIRED] Actual behavior

Not working with version 13.0.2

Error: Cannot understand what targets to deploy/serve. No targets in firebase.json match '--only functions:querySortedActivities'.

Activity

  1. google-oss-bot commented on Jan 8, 2024

    @google-oss-bot
    Collaborator

    This issue does not seem to follow the issue template. Make sure you provide all the required information.

  2. aalej commented on Jan 9, 2024

    @aalej
    Contributor

    Hey @jcurlier, thanks for reaching out. I think the cause of this could be related to our recent change in #6555. Could you share your firebase.json file so that we can check if this is the case?

    Also, does adding the following configuration to your firebase.json make any difference in the behavior:

    {
     "functions": [
       {
         "source": "functions",
         "codebase": "default",
         "ignore": [
           "node_modules",
           ".git",
           "firebase-debug.log",
           "firebase-debug.*.log"
         ]
       }
     ]
    }
  3. added
    Needs: Author Feedback
    on Jan 9, 2024
  4. added and removed
    Needs: Author Feedback
    on Jan 9, 2024
  5. jcurlier commented on Jan 10, 2024

    @jcurlier
    Author

    my firebase.json was empty add adding the above solved the issue

  6. jcurlier commented on Jan 10, 2024

    @jcurlier
    Author

    This issue seems to be a duplicate of #6555.

  7. aalej commented on Jan 10, 2024

    @aalej
    Contributor

    I'm glad to know that it's working now. Currently, this seems to be working as intended based on the changes in #6555, which was released in v13.0.0 of firebase-tools. For now, I'm going to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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