Commit Graph

1289 Commits

Author SHA1 Message Date
Marco Vermeulen
ba10bb5eb9 Refine platform handling in tests. 2020-10-10 09:35:18 +01:00
Damiaan van der Kruk
c38c843c44 Removes default parameter on asSdkmanPlatform() 2020-10-10 09:35:18 +01:00
Damiaan van der Kruk
2bb77ce5ec Fix formatting 2020-10-10 09:35:18 +01:00
Damiaan van der Kruk
492a86628b Moves plaform conversion in asSdkmanPlatform 2020-10-10 09:35:18 +01:00
Damiaan van der Kruk
7d5ba11e9b Adds arm64 dection of running os in tests 2020-10-10 09:35:18 +01:00
Damiaan van der Kruk
b04f9fa5f7 Adds LinuxARM64 detection 2020-10-10 09:35:18 +01:00
Oliver Weiler
84a1954e76 Run sdk env on opening a new terminal (#780) 2020-10-10 09:35:18 +01:00
Oliver Weiler
eea874da00 Replace $(cat file) invocations with $(< file) for better performance 2020-10-10 09:35:18 +01:00
Ross Goldberg
7b2f7e9abb Use relative path for current link to version dir 2020-10-10 09:35:18 +01:00
Ross Goldberg
0cf61c0760 Rename duplicate path initialisation scenario name
Two scenarios both had the same name. Renamed the incorrectly named one.
2020-10-10 09:35:18 +01:00
Ross Goldberg
9852a344f2 Remove legacy bash workaround from __sdk_update
The code that didn't work on legacy bash was removed a long time ago, so
the workaround is no longer necessary

The workaround prevents the tests from all completing successfully on
legacy bash, so it's very useful to remove the workaround
2020-10-10 09:35:18 +01:00
Ross Goldberg
6d6b459ee8 Improve __sdkman_secure_curl_download (#763)
* Use shell-agnostic code in …_secure_curl_download
* Replicate original order of curl arguments
2020-10-10 09:35:18 +01:00
Marco Vermeulen
3ed7e7c654 Prevent the use command from accessing the internet. 2020-10-10 09:35:18 +01:00
Michael G
a4157a9ec7 Add GitHub issue templates for bugs, features, support and PRs (#755)
* Add GitHub issue templates for bugs, features, support and PRs

Issues are either a bug report, feature request or support request. Labels
are automaticaly added to the issues respectively: bug, enhancement, support.

The templates suggest using the Slack before opening an issue, but no longer
say it is a hard requirement. This might give a more inclusive impression to
people reporting who are not Slack users.

* List more information that should be provided for new issues
2020-10-10 09:35:18 +01:00
Oliver Weiler
bcb97dcca5 Automatically execute sdk env when entering a directory with an .sdkmanrc (#757)
Add auto-env functionality.

Authored-by: Oliver Weiler <oliver.weiler@meinestadt.de>
2020-10-10 09:35:18 +01:00
Marco Vermeulen
ade991ab08 Prevent logging of normalised_line in env command. 2020-10-10 09:35:18 +01:00
Marco Vermeulen
b4cd510a8e Add some comments to generated .sdkmanrc file. 2020-10-10 09:35:18 +01:00
Ross Goldberg
313b8ff917 Simplify bash csv parsing in sdkman-init.sh (#754) 2020-10-10 09:35:18 +01:00
Ross Goldberg
0e147505fd Fix cached candidate server api error-handling bug in sdk update (#749)
* Fix cached candidate server api error-handling bug
* Simplify code in update scripts
2020-10-10 09:35:18 +01:00
Oliver Weiler
fd3bfc72d9 Declare line_without_comments as local and readonly 2020-10-10 09:35:18 +01:00
Oliver Weiler
083086fa62 Revert "Declare line_without_comments as local and readonly"
This reverts commit 6ff6c07f3f.
2020-10-10 09:35:18 +01:00
Oliver Weiler
60ddb0c951 Declare line_without_comments as local and readonly 2020-10-10 09:35:18 +01:00
Oliver Weiler
3c068f4ee3 Declare sub_command as local and readonly 2020-10-10 09:35:18 +01:00
Oliver Weiler
037a5df73f Declare sdkmanrc as a local, readonly variable 2020-10-10 09:35:18 +01:00
Oliver Weiler
fc51c05712 Shorten description 2020-10-10 09:35:18 +01:00
Oliver Weiler
922677fdc9 Revert "Remove unnecessary quoting"
This reverts commit ef1a9c6f84.
2020-10-10 09:35:18 +01:00
Oliver Weiler
d10dfd47ad Remove unnecessary quoting 2020-10-10 09:35:18 +01:00
Oliver Weiler
f1b4a61606 Add explanatory comment 2020-10-10 09:35:18 +01:00
Oliver Weiler
a0abad76c6 Remove unnecessary test 2020-10-10 09:35:18 +01:00
Oliver Weiler
43c2f9c160 Add parametrised test for .sdkmanrc generation 2020-10-10 09:35:18 +01:00
Oliver Weiler
6d219e8088 Revert unwanted change 2020-10-10 09:35:18 +01:00
Oliver Weiler
a6db528b93 Add test for .sdkmanrc generation 2020-10-10 09:35:18 +01:00
Oliver Weiler
fce87d794b Fix broken test 2020-10-10 09:35:18 +01:00
Oliver Weiler
4c53fb8556 Revert function name 2020-10-10 09:35:18 +01:00
Oliver Weiler
aee7d2316e Revert error message 2020-10-10 09:35:18 +01:00
Oliver Weiler
9262e38a60 Extract Java fallback version 2020-10-10 09:35:18 +01:00
Oliver Weiler
26ab750d4d Extract function for sdk env init 2020-10-10 09:35:18 +01:00
Oliver Weiler
a2c7333a7f Improve coding style 2020-10-10 09:35:18 +01:00
Oliver Weiler
3c06f2d2e6 Rename function 2020-10-10 09:35:18 +01:00
Oliver Weiler
a3faeb3b70 Set java version when creating .sdkmanrc 2020-10-10 09:35:18 +01:00
Oliver Weiler
f31071b223 Rename local variable 2020-10-10 09:35:18 +01:00
Oliver Weiler
4f09c2f3f5 Perform normalisation before format check 2020-10-10 09:35:18 +01:00
Oliver Weiler
1f71f926f7 Add rudimentary implementation of sdk env init 2020-10-10 09:35:18 +01:00
Oliver Weiler
3d84b11e0e Do not allow non-whitespace characters after candidate version 2020-10-10 09:35:18 +01:00
Oliver Weiler
892ce1e82b Improve test description 2020-10-10 09:35:18 +01:00
Oliver Weiler
1f04162e70 Remove unused import 2020-10-10 09:35:18 +01:00
Oliver Weiler
43d206b66f Add support for comment lines and blank lines 2020-10-10 09:35:18 +01:00
Ross Goldberg
47188ae980 Fix candidate cache update bug
In __sdk_update, candidates wouldn't be updated if the same number of
candidates were removed & added because detection was solely based on
old vs. new candidate counts.
2020-10-10 09:35:18 +01:00
Jan Larres
708c121f83 Don't fail redirections if noclobber is set
Using the '>|' syntax for shell redirections instead of '>' forces an
overwrite even if the noclobber option is set.
2020-10-10 09:35:18 +01:00
ievgen degtiarenko
761ea99763 746 - upgrade should use auto answer 2020-10-10 09:35:18 +01:00