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
- git clone https://github.com/pamelafox/regression-model-azure-demo at 6d8c7e76981186663f888a1f7cd55308b2ce0f3f
- Run azd up
- 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.
Output from
azd versionazd version 0.3.0-beta.4-pr.1945868 (commit 3aadf6d)
Output from
az versionDescribe 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:
azure-dev/cli/azd/pkg/project/internal/project_utils.go
Line 16 in a74e800
To Reproduce
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.