bake: allow variables to reference each other

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2021-02-09 23:57:24 -08:00
parent 0e9066f6ed
commit 33f25acb08
3 changed files with 245 additions and 43 deletions

View File

@@ -402,8 +402,8 @@ func (c Config) target(name string, visited map[string]struct{}, overrides map[s
}
type Variable struct {
Name string `json:"-" hcl:"name,label"`
Default string `json:"default,omitempty" hcl:"default,optional"`
Name string `json:"-" hcl:"name,label"`
Default *hcl.Attribute `json:"default,omitempty" hcl:"default,optional"`
}
type Group struct {