Resource references in depdency mods must be fully qualified. Locals in dependency mods cannot be referenced. Support transitive dependencies referencing variables from different versions of same mod. Closes #3335. Closes #3336. Closes #3337

This commit is contained in:
kaidaguerre
2023-04-14 12:37:32 +01:00
committed by GitHub
parent dca9f594c2
commit 137e438bdc
10 changed files with 155 additions and 101 deletions

View File

@@ -57,8 +57,8 @@ func NewInitData(ctx context.Context) *InitData {
return i
}
if len(w.GetResourceMaps().Controls) == 0 {
i.Result.AddWarnings("no controls found in current workspace")
if len(w.GetResourceMaps().Controls)+len(w.GetResourceMaps().Benchmarks) == 0 {
i.Result.AddWarnings("no controls or benchmarks found in current workspace")
}
if err := controldisplay.EnsureTemplates(); err != nil {