Open jackhorton opened 2 years ago
Yeah, we would need to an additional task to our msbuild targets to enumerate the true dependencies of any particular Bicep module. The logic for that shouldn't be too complicated, but we will need to figure out the packaging since Bicep.Core targets net6
but msbuild task currently targets netstandard2.0
.
The load...
file functions need to be considered for inputs that affect the output file.
Agreed. For param files, references to bicep files via the using
keyword should also be included.
Mildly related to #12956
I added a bicep/getFileReferences
method to #13051 which may also be helpful for this implementation.
+1 to this issue; just ran into this problem myself helping a teammate debug an issue.
Bicep version 0.4.1124
Describe the bug If you have two templates
parent.bicep
andchild.bicep
wherechild.bicep
is included as a module fromparent.bicep
, rebuilding templates withdotnet build
will only regeneratechild.json
, notparent.json
Additional context I believe this was caused by #5253, FYI @stan-sz