Skip to content

Commit

Permalink
Check for exactly one package and one metadata resource (#1295)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Su <[email protected]>
  • Loading branch information
andrew-su authored Aug 21, 2023
1 parent d925c28 commit 60a80de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/pkg/kctrl/cmd/package/release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (o *ReleaseOptions) Run() error {
if err != nil {
return err
}
if len(pkgConfigs.PkgMetadatas) != 1 || len(pkgConfigs.PkgMetadatas) != 1 {
if len(pkgConfigs.Pkgs) != 1 || len(pkgConfigs.PkgMetadatas) != 1 {
return fmt.Errorf("Reading package-resource.yml: file malformed. (hint: delete the file and run `package init` again)")
}

Expand Down

0 comments on commit 60a80de

Please sign in to comment.