Code Monkey home page Code Monkey logo

Comments (3)

pledbrook avatar pledbrook commented on July 24, 2024

Ah, I saw this but didn't know how to reproduce. Glad you picked up on it.

from sdkman-cli.

marc0der avatar marc0der commented on July 24, 2024

The installation will be handled by a gvm-selfupdate script in the bin folder. This will prevent the gvm script from overwriting itself.

As part of this task, I'll also rework the installation of scripts by creating a zip file on the server side of all resources in the srv/scripts folder. The gvm-selfupdate script will then curl down the zip and unzip it into ~/.gvm/bin.

I was thinking about writing a gradle task to zip the files upfront, then pushing it to the heroku repo, but am very aware of the risk involved in forgetting to run this before pushing to heroku...

from sdkman-cli.

marc0der avatar marc0der commented on July 24, 2024

Lots of hacking to get this one working but I now have a descent (and clean) version up on the test environment. In short, we now have a /selfupdate endpoint that serves a script for downloading a zip binary containing the latest gvm scripts. This endpoint is curled, then invoked much like the installation procedure. This is done from within the selfupdate function in the gvm script.

The beauty of this is that the gvm script overwrite is now deferred to a different script, so we no longer see the annoying jumbled text when updating.

The downside is that to upgrade to this new version, the user will see jumbled text one last time on selfupdate.

from sdkman-cli.

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.