Azure / Azure/bicep

MSBuild: parent template is not rebuilt when child (module) template changes

Open
#5,715 6 comments 0 reactions 0 assignees View on GitHub
bug investigate
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

**Bicep version**
0.4.1124

**Describe the bug**
If you have two templates `parent.bicep` and `child.bicep` where `child.bicep` is included as a module from `parent.bicep`, rebuilding templates with `dotnet build` will only regenerate `child.json`, not `parent.json`

**Additional context**
I believe this was caused by #5253, FYI @stan-sz

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with parent.bicep including child.bicep, then run dotnet build and observe whether both JSON templates are regenerated. Start by tracing the MSBuild handling of module dependencies; done means changing child.bicep causes both child.json and parent.json to regenerate.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.