Comments (10)
In a user-specified directory? Should the installation script ask where to put it? Or simply ask whether it should be a local or global install?
Another option would be for the user to set GVM_DIR
before running the curl command, but that's not a common process for installation.
from sdkman-cli.
Yes, maybe reading it from console (with a question posed, defaulting to $HOME.gvm/
).
The install script would then be doing a search/replace of @GVM_DIR@
with sed on the gvm-init.sh script on unpacking the zip.
The only problem with non-default values would be that we need to check that the user has the privileges to write for example to /usr/local
.
I'll write up some scenarios first before I start any development.
from sdkman-cli.
Any updates on this issue?
from sdkman-cli.
I think the current focus of work is converting gvm to xvm. That said, if you or anyone else could help create some Cucumber-based scenarios for this feature, that would be great. As @marcoVermeulen said, the feature needs specifying first.
from sdkman-cli.
Totally agree. In the meanwhile, as @pledbrook pointed out, it is possible to set the GVM_DIR
environment variable in your bash profile as workaround. I tested this and it works fine.
from sdkman-cli.
@marcoVermeulen Yes I'm doing so currently
from sdkman-cli.
+1 for this feature
from sdkman-cli.
Try as I might, I can't get the GVM_DIR
setting to work.
I set export GVM_DIR=/usr/local/gvm
in ~/.bashrc
. In ~/.bash_profile
, I source ~/.bashrc
, I delete all gvm stuff, exit the terminal, open a new one, run curl -s get.gvmtool.net | bash
and it still writes everything to $HOME/.gvm
.
GVM_DIR
is hard-coded into the script that curl
downloads, so the value I exported isn't used at all.
from sdkman-cli.
Working on it. Should have something out by tomorrow.
On Thu, 27 Aug 2015 at 07:15 Ben Richardson [email protected]
wrote:
Try as I might, I can't get the GVM_DIR setting to work.
I set export GVM_DIR=/usr/local/gvm in ~/.bashrc. In ~/.bash_profile, I source
~/.bashrc, I delete all gvm stuff, exit the terminal, open a new one, run curl
-s get.gvmtool.net | bash and it still writes everything to $HOME/.gvm.GVM_DIR is hard-coded into the script that curl downloads, so the value I
exported isn't used at all https://stackoverflow.com/a/4609727/2495717.—
Reply to this email directly or view it on GitHub
#23 (comment).
from sdkman-cli.
This has been successfully implemented.
from sdkman-cli.
Related Issues (20)
- Bug: Java 17.0.7-amzn, 17.0.8-amzn not available anymore
- Bug: sdk install java 17.0.9-graal fails on macOS Sonoma 14.1.2 corrupt archive error, job table full on zsh HOT 4
- Feature: [why can't configuration download path?] HOT 1
- Bug: [sdk list <candidate> and install not working] HOT 6
- Bug: Env vars are not set in IDEA. What about move the init script from .bashrc to .profile?
- Bug: [use command sdk list java it return not find, is bug? ]
- Improvement: Verify that `tar` is available HOT 2
- Feature: Using SDKMAN in a CI pipeline
- XDG Support
- Question: support for russian developers HOT 2
- Bug: Problems with array indexing and length handling in `sdkman-list.sh`
- Bug: Can't update Quarkus to 3.6.8 HOT 1
- Bug: some of sdk shell command failure. HOT 2
- Bug: JAVA_HOME not defined for GUI apps on Linux (Gnome) HOT 3
- Feature: Follow symlinks for scripts and extension files
- Question: How to initialize SDKMAN in a subprocess? HOT 2
- Bug: Cygwin: curl can't write to .sdkman/tmp: Failed to open /home/<user>/.sdkman/tmp/groovy-4.0.19.headers.tmp HOT 2
- `.sdkmanrc` file is tracked in git HOT 1
- Bug: native `uninstall` command fails due to `current link broken, stepping over: The file or directory is not a reparse point. (os error 4390)`
- Installing jdk with sdkman keeps reporting errors HOT 5
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.