Fix setters subpkgs friction

This commit is contained in:
Phani Teja Marupaka
2020-09-02 22:55:25 -07:00
parent 980f407552
commit 8d74b8c3b5
9 changed files with 43 additions and 19 deletions

View File

@@ -87,7 +87,7 @@ func (c SetterCreator) Create() error {
}.Execute()
if a.Count == 0 {
fmt.Printf("setter %q doesn't match any field in resource configs, "+
"but creating setter definition\n", c.Name)
"but creating setter definition in package %q\n", c.Name, c.ResourcesPath)
}
if err != nil {
return err

View File

@@ -138,7 +138,7 @@ func (c SubstitutionCreator) Create() error {
}
// Update the resources with the substitution reference
inout := &kio.LocalPackageReadWriter{PackagePath: c.ResourcesPath}
inout := &kio.LocalPackageReadWriter{PackagePath: c.ResourcesPath, PackageFileName: c.OpenAPIFileName}
err = kio.Pipeline{
Inputs: []kio.Reader{inout},
Filters: []kio.Filter{kio.FilterAll(a)},
@@ -147,7 +147,7 @@ func (c SubstitutionCreator) Create() error {
if a.Count == 0 {
fmt.Printf("substitution %s doesn't match any field value in resource configs, "+
"but creating substitution definition\n", c.Name)
"but creating substitution definition in package %q\n", c.Name, c.ResourcesPath)
}
return err
}