Description
When the proxy central repository is enabled, running bal pull ballerina/http followed by bal pull ballerina/io causes the second command to fail with the following error:
Package already exists.
ballerina: error occurred while resolving dependencies, reason: Given bala path does not exist: /Users/luheerathan/.ballerina/repositories/central.ballerina.io/bala/ballerina/io/1.8.0/java11
The tool reports that the package already exists but then immediately fails because the expected bala path (java11 platform directory) is not found. This is inconsistent — the tool should not report "Package already exists" and then fail to resolve it.
Steps to Reproduce
- Enable the proxy central repository in Ballerina settings.
- Run
bal pull ballerina/http — succeeds.
- Run
bal pull ballerina/io
Expected behavior: Package is pulled successfully or a clear "already up-to-date" message is shown.
Actual output:
Package already exists.
ballerina: error occurred while resolving dependencies, reason: Given bala path does not exist: /Users/luheerathan/.ballerina/repositories/central.ballerina.io/bala/ballerina/io/1.8.0/java11
Affected Version(s)
2201.13.3 (Swan Lake Update 13)
OS, DB, other environment details and versions
- OS: macOS (Darwin 25.3.0, Apple Silicon / aarch64)
- Ballerina: 2201.13.3 (Swan Lake Update 13)
- Language specification: 2024R1
- Update Tool: 1.5.1
Related area
-> Central
Suggested label(s) (optional)
Area/Central, Type/Bug
Description
When the proxy central repository is enabled, running
bal pull ballerina/httpfollowed bybal pull ballerina/iocauses the second command to fail with the following error:The tool reports that the package already exists but then immediately fails because the expected bala path (
java11platform directory) is not found. This is inconsistent — the tool should not report "Package already exists" and then fail to resolve it.Steps to Reproduce
bal pull ballerina/http— succeeds.bal pull ballerina/ioExpected behavior: Package is pulled successfully or a clear "already up-to-date" message is shown.
Actual output:
Affected Version(s)
2201.13.3 (Swan Lake Update 13)
OS, DB, other environment details and versions
Related area
-> Central
Suggested label(s) (optional)
Area/Central,Type/Bug