ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
137 stars 58 forks source link

Invalid Package Name Error During Package Generation #6804

Closed RDPerera closed 1 month ago

RDPerera commented 1 month ago

Description: We are encountering an error related to invalid package names during the package generation process. The error message is as follows:

Invalid package name. Package name should be in the format orgname/libname

Details: The error seems to occur when there are uppercase letters in the organization name.

Steps to Reproduce:

  1. Execute the following command:
    bal edi libgen -p MyOrg/porder -i MyOrg/schemas -o MyOrg/lib
  2. The command results in the following error:
    Invalid package name. Package name should be in the format orgname/libname

Observation: The command works when the organization name is entirely in lowercase:

bal edi libgen -p myorg/porder -i MyOrg/schemas -o myorg/lib

Expected Behavior: The package generation process should handle uppercase letters in the organization name without resulting in an error.

github-actions[bot] commented 1 month ago

This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.

      - Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
      - Reason/Regression - The issue has introduced a regression.
      - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
      - Reason/Complex - Issue occurred due to complex scenario.
      - Reason/Invalid - Issue is invalid.
      - Reason/Other - None of the above cases.