Comments (5)
This will happen if we install the new version when we have already a ballerina version installed. This is due to when we issue the bal -v
, ballerina version and language-specific version are printed from the ballerina-lang first, and then update tool version is printed from the update tool. But when getting the BALLERINA_HOME we use the .ballerina/ballerina-version
file. However ballerina version updation logic is inside the update tool. So for the first time, it is not updated. So it picks the already installed version as the default version for the first time.
Suggestions:
- We could update the
ballerina-version
during the post-installation. However, permission issues needs to be considered as the installation will be performed by the root user. Then we don't need the installer version file as well. - We could move the logic of the checks of the installer version should be moved to the lang repo.
from ballerina-update-tool.
As the third case shall we inform the user to remove the existing version before installing the new one ? Also we can suggest user to do bal dist updated
instead.
from ballerina-update-tool.
As the third case shall we inform the user to remove the existing version before installing the new one ? Also we can suggest user to do
bal dist updated
instead.
Yes, we can ask the user to do so. Now also we suggest the user to update to get the latest. Then we can remove the installer version file as well.
from ballerina-update-tool.
This issue should fix with this #60
Ok now i realized this will fail for the first time as -v
calls lang first and then call update tool. To solve this we can issue a bal dist list
after the installation as a workaround. This update tool should cleanup
from ballerina-update-tool.
This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.
- Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
- Reason/Regression - The issue has introduced a regression.
- Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
- Reason/Complex - Issue occurred due to complex scenario.
- Reason/Invalid - Issue is invalid.
- Reason/Other - None of the above cases.
from ballerina-update-tool.
Related Issues (20)
- Update tools does not pull distributions HOT 5
- Include integrity checks
- Update tool pointing to 2201.0.5 as the latest HOT 2
- Unexpected error when using dist pull HOT 2
- Need to update batch files with latest dependencies. HOT 1
- [Bug]: Ballerina resource path escape characters present in Observability data HOT 1
- [Bug]: Null pointer exception when generating docs HOT 1
- [Bug]: `bal dist list` command is not showing latest distributions HOT 2
- Improve local disttribution in dist list HOT 1
- [Bug]: Updating to SL update 3 broke bal command for me WSL2 + Ubuntu
- Update test cases to check for exact output
- Introduce a new approach to renew the shell script while updating the tool HOT 1
- [Bug]: ballerina: distribution '2201.4.1' not found
- Fix data missmatch in `bal dist update` HOT 2
- Revisit tool updating during `bal dist pull <version>` / `bal dist update` commands HOT 3
- Add a method to grab the system architecture without depending on the JDK that the jar is executing
- Test update tool in environments that Java is not installed
- Remove access denied error in update tool commands HOT 2
- `bal dist pull latest` keeps installing 2201.4.2 instead of 2201.5.0 HOT 1
- Update help text for `bal help dist`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ballerina-update-tool.