Skip to content

[Improvement]: Print a warning when there is no Package.md when running bal pack #39897

@gayaldassanayake

Description

@gayaldassanayake

Description

Currently, we can pack a package without having a Package.md file. However when we try to push it to local repo or to the central, it throws an error asking us to have a Package.md.

Moreover, when pushing to the central we cannot have an empty Package.md but we can pack an empty Package.md during bal pack.

Describe your problem(s)

The user realizes that they have not packed a Package.md only when they try to push the package. He has to again add a md file, pack it and push which is cumbersome.

Describe your solution(s)

Introducing a warning diagnostic that warns,

  1. if there is no Package.md when calling bal pack,
  2. if Package.md is empty

would be helpful as the user can identify and take corrective measures.

Related area

-> Other Area

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions