Skip to content

Funcignore does not support include-exclude-pattern #4240

Open
@benedikt-mue

Description

Version

Azure Functions Core Tools
Core Tools Version:       4.0.6821 Commit hash: N/A +c09a2033faa7ecf51b3773308283af0ca9a99f83 (64-bit)
Function Runtime Version: 4.1036.1.23224

Description

I currently try to make the .funcignore more deterministic by using the git-like antipattern to only include the files needed to deploy the function.

#.funcignore
# Ignore everything
*

!.funcignore
!function_app.py
!host.json
!requirements.txt

which results in:

# log output
1:09:17 PM func-example-02: Starting deployment...
1:09:17 PM func-example-02: Creating zip package...
1:09:17 PM func-example-02: Adding 0 files to zip package...
1:09:17 PM func-example-02: Zip package size: 22 B

Steps to reproduce

  1. create .funcignore
  2. deploy function

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

    Participants

    @satvu@benedikt-mue

    Issue actions

      Funcignore does not support include-exclude-pattern · Issue #4240 · Azure/azure-functions-core-tools