Giter VIP home page Giter VIP logo

Comments (5)

suganyasuven avatar suganyasuven commented on May 27, 2024

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:

  1. 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.
  2. We could move the logic of the checks of the installer version should be moved to the lang repo.

from ballerina-update-tool.

hevayo avatar hevayo commented on May 27, 2024

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.

suganyasuven avatar suganyasuven commented on May 27, 2024

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.

keizer619 avatar keizer619 commented on May 27, 2024

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.

github-actions avatar github-actions commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.