ballerina-platform / ballerina-spec

Ballerina Language and Platform Specifications
Other
167 stars 53 forks source link

Handling Ballerina platform version mismatches in `Ballerina.toml` and build environment #1249

Open sameerajayasoma opened 1 year ago

sameerajayasoma commented 1 year ago

Ballerina.toml file captures the minimum Ballerina update version required to build a package. It was introduced to prevent developers from building a package using a different update version than the version specified in the Ballerina.toml. This attribute is particularly useful in producing predictable builds in CI/CD pipelines because it ensures that the build environment uses the same distribution update version which is captured in Ballerina.toml

But, unfortunately, bal build currently ignores this attribute. This issue describes an approach to fix it.

If the Swan lake update version captured in the Ballerina.toml is different from the update version installed in the build environment:

sanjiva commented 1 year ago

+1.