Comments (3)
Ah, I saw this but didn't know how to reproduce. Glad you picked up on it.
from sdkman-cli.
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.
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)
- "You already have SDKMAN installed" after deploying dotfiles with sdkman config
- Bug: Java zulu installation failing with ZIP HOT 1
- Bug: FAIL - Application already exists at path [/] HOT 1
- Bug: The requested URL returned error: 504 HOT 8
- mvnd clobbers mvn command after recent update HOT 4
- Bug: Stop! java is not a valid candidate while running sdk list java HOT 27
- Bug: Unable to install java HOT 5
- Bug: Offers Quarkus 3.0.0.Alpha4 as default version HOT 1
- Bug: sdkman complaining about proxy in CI on GitHub Actions HOT 2
- Bug: SDK list <candidate> is not working on version 5.16.1 HOT 9
- Bug: sdk selfupdate fails at line 92 when tmp directory does not exist HOT 3
- Bug: thread 'main' panicked at 'failed printing to stdout HOT 5
- Feature: Per project installation of SDK
- The installation command HOT 5
- Bug: Error on install HOT 1
- Bug: 'sdk current' does not list current candidates on Git Bash HOT 8
- Bug: Enabling offline mode should not check for updated versions HOT 3
- Feature: Add support for helm HOT 1
- Bug: sdk home asks interactively for an upgrade and shows the hint to run sdk update HOT 3
- Bug: JAVA_HOME for Zulu JDK doesn't match location for JDK found by Gradle HOT 3
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 sdkman-cli.