Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Funcignore does not support include-exclude-pattern #4240

Open
benedikt-mue opened this issue Jan 24, 2025 · 0 comments
Open

Funcignore does not support include-exclude-pattern #4240

benedikt-mue opened this issue Jan 24, 2025 · 0 comments

Comments

@benedikt-mue
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant