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

[Bug]: bal build showing contradictory behaviours when building with update 9 followed by update 8 #42778

Open
Thevakumar-Luheerathan opened this issue May 20, 2024 · 0 comments
Assignees
Labels
Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Bug userCategory/Compilation

Comments

@Thevakumar-Luheerathan
Copy link
Member

Thevakumar-Luheerathan commented May 20, 2024

Description

When a project is first built with update 9 followed by update 8, depending on the imports in the project

  1. Stick to update 9 Dependecies.toml strictly.
  2. Update 8 compatible versions are pulled.(We can find changes in Dependencies.toml when the build passes.)

Expected behavior - When a Ballerina project is built with a latest update followed by an older update, We should stick to the Dependencies.toml(latest update build) strictly.

Consider following examples
Scenario 1
main.bal

import ballerina/crypto as _;

public function main() {

}

Scenario 2
main.bal

import ballerinax/googleapis.sheets as _;

public function main() {

}

Scenario 1 fails with unresolved module error while Scenario 2 passes without any error

Steps to Reproduce

No response

Affected Version(s)

update 9, update 8 and other versions may be

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot added needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels May 20, 2024
@Thevakumar-Luheerathan Thevakumar-Luheerathan added Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) and removed needTriage The issue has to be inspected and labeled manually labels May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Bug userCategory/Compilation
Projects
Status: No status
Development

No branches or pull requests

2 participants