mirror of https://github.com/databricks/cli.git
Update warning for includes outside root to only mention databricks.yml (#2411)
## Why Addresses feedback from this thread: https://github.com/databricks/cli/pull/2389#discussion_r1975760462.
This commit is contained in:
parent
b95662c18e
commit
03e4bb2575
|
@ -2,10 +2,8 @@ Warning: Include section is defined outside root file
|
|||
at include
|
||||
in a.yml:2:3
|
||||
|
||||
The include section is defined in a file that is not the root file.
|
||||
These values will be ignored because only the includes defined in
|
||||
the bundle root file (that is databricks.yml or databricks.yaml)
|
||||
are loaded.
|
||||
An include section is defined in a file that is not databricks.yml.
|
||||
Only includes defined in databricks.yml are applied.
|
||||
|
||||
Name: include_outside_root
|
||||
Target: default
|
||||
|
|
|
@ -165,10 +165,8 @@ func (m *processInclude) Apply(_ context.Context, b *bundle.Bundle) diag.Diagnos
|
|||
diags = diags.Append(diag.Diagnostic{
|
||||
Severity: diag.Warning,
|
||||
Summary: "Include section is defined outside root file",
|
||||
Detail: `The include section is defined in a file that is not the root file.
|
||||
These values will be ignored because only the includes defined in
|
||||
the bundle root file (that is databricks.yml or databricks.yaml)
|
||||
are loaded.`,
|
||||
Detail: `An include section is defined in a file that is not databricks.yml.
|
||||
Only includes defined in databricks.yml are applied.`,
|
||||
Locations: this.GetLocations("include"),
|
||||
Paths: []dyn.Path{dyn.MustPathFromString("include")},
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue