Skip to content

Commit 60a80de

Browse files
authored
Check for exactly one package and one metadata resource (#1295)
Signed-off-by: Andrew Su <[email protected]>
1 parent d925c28 commit 60a80de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/pkg/kctrl/cmd/package/release/release.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func (o *ReleaseOptions) Run() error {
9090
if err != nil {
9191
return err
9292
}
93-
if len(pkgConfigs.PkgMetadatas) != 1 || len(pkgConfigs.PkgMetadatas) != 1 {
93+
if len(pkgConfigs.Pkgs) != 1 || len(pkgConfigs.PkgMetadatas) != 1 {
9494
return fmt.Errorf("Reading package-resource.yml: file malformed. (hint: delete the file and run `package init` again)")
9595
}
9696

0 commit comments

Comments
 (0)