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:
Fail the build
Give instructions on how to update the Ballerina.toml
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 theBallerina.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 inBallerina.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:Ballerina.toml