Skip to content

[Issue] Deployed zip does not obey .funcignore #1039

Description

@pamelafox

Output from azd version

azd version 0.3.0-beta.4-pr.1945868 (commit 3aadf6d)

Output from az version

{
  "azure-cli": "2.40.0",
  "azure-cli-core": "2.40.0",
  "azure-cli-telemetry": "1.0.8",
  "extensions": {
    "containerapp": "0.3.11",
    "containerapp-compose": "0.2.2"
  }
}

Describe the bug

I'm fairly certain that azd is zipping up everything in the folder and not ignoring files/folders in funcignore which I would expect to be ignored.

I suspect that because 1) zipping my little function folder takes a lot longer than I'd expect and 2) I see no evidence of funcignore parsing in codebase, and I see this TODO here about ignoring files:

// TODO: should probably avoid picking up files that weren't meant to be published (ie, local .env files, etc..)

To Reproduce

  1. git clone https://github.com/pamelafox/regression-model-azure-demo at 6d8c7e76981186663f888a1f7cd55308b2ce0f3f
  2. Run azd up
  3. Browse "App Files" in Azure Portal, still see .DS_Store

Expected behavior

I expect it to not zip up files/folders specified in .funcignore

Environment

Mac OS X Ventura

Additional context

I can reorganize my project structure to avoid such a large deploy, but I think it'd be good to support .funcignore for consistency with other ways to deploy function apps.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions