Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using bal run command in a project where ballerinax/mi is imported generates the connector zip file #7392

Open
poorna2152 opened this issue Nov 21, 2024 · 0 comments

Comments

@poorna2152
Copy link

Description

When the ballerinax/mi is imported the connector for MI should be generated only when the bal tool mi command is run. But even when the bal run command is invoked in a project where the ballerinax/mi is imported this generates the zip file.

Steps to Reproduce

  1. Create a ballerina project
  2. Add the following content to a ballerina file.
import ballerinax/mi;

@mi:ConnectorInfo
public function calculateTotal(xml invoice) returns xml {
    xml<xml:Element> prices = invoice/**/<price>;
    int total = from xml:Element element in prices
        let int|error price = int:fromString(element.data())
        where price is int
        collect sum(price);
    return xml `<total>${total}</total>`;
}
  1. Run the bal run command.
    This would generate the zip file.

Version

v0.1.2

Environment Details (with versions)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant