Azure / Azure/azure-functions-dotnet-worker

FunctionsEnableMetadataSourceGen doesn't disable the metadata generator

Open
#2,209 0 comments 0 reactions 0 assignees View on GitHub
area: configuration feature: source-metadata-generator needs-discussion
Dominant language
C#
Stars
466
Forks
215
Avg merge
3d 10h
Merged PRs (30d)
7

Description

Potentially related issues

https://github.com/Azure/azure-functions-dotnet-worker/issues/2186
https://github.com/Azure/azure-functions-dotnet-worker/issues/1058

as suggested by @jviau in https://github.com/Azure/azure-functions-dotnet-worker/issues/2186#issuecomment-1885330533 it should be possible to control the individual source generators with

```xml
false
false
```

while `FunctionsEnableExecutorSourceGen` works setting `FunctionsEnableMetadataSourceGen` to `false` doesn't lead to disabling the metadata source generator. Only when `FunctionsEnableWorkerIndexing` is set to `false` the metadata source generator is actually disabled so in essence `FunctionsEnableMetadataSourceGen` has no effect.

![Before](https://github.com/Azure/azure-functions-dotnet-worker/assets/174258/1fb2442d-8af4-48b3-ba04-8785b6c2f3dd)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the handling of FunctionsEnableMetadataSourceGen and compare it with FunctionsEnableExecutorSourceGen. Verify that setting FunctionsEnableMetadataSourceGen to false disables only the metadata generator, then confirm the behavior with the existing source-generation tests or project configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.