Thomas Luzat
c36e6f065d
fix: select correct legacy version ( closes #358 ) ( #359 )
...
* fix: select correct legacy version (closes #358 )
* Allow macOS' sort to sort versions
2024-07-30 12:44:31 -03:00
Trung Lê
150ec5d2b6
Update latest LTS to NodeJS 20 Iron ( #377 )
2023-10-28 10:33:47 -03:00
Augusto Moura
4f8aa3d9eb
feat: add resolve command for resolving legacy version queries ( #353 )
2023-05-31 01:22:44 -03:00
Augusto Moura
385ff1349e
feat: limit dynamic resolve strategies
2023-05-18 14:00:34 -03:00
Augusto Moura
c406dac170
feat: refactor version/aliases resolution
2023-04-19 23:07:49 -03:00
ygXXII
9ce1bfc6e3
Move "--location" from curl_opts to curl option
...
Co-authored-by: Augusto Moura <augusto.moura@toptal.com>
2023-02-22 09:38:50 +08:00
ygXXII
81b31c0a4d
Add "--location" to curl_opts
2023-02-21 23:20:04 +08:00
Augusto Moura
d62b66ae18
fix: add cat to circumvent printf's broken pipe on bash3
2022-06-08 13:56:36 -03:00
Augusto Moura
9c00a9e878
feat: remove unnecessary quotes
2022-04-27 09:48:25 -03:00
Augusto Moura
5d34772d02
fix: run alias filtering everytime because of nodebuild
...
nodebuild can be updated and make new definitions available, we need to
filter for lts aliases everytime, and only cache the request to
index.tab
2022-03-16 16:50:16 -03:00
Augusto Moura
aded55ba04
fix: skip versions when filtering aliases if not available on nodebuild
2022-03-16 15:08:18 -03:00
burnettk
a20484c57f
promote nodebuild_wrapped from install to utils so we can use it in list-all
2022-03-12 17:58:31 -05:00
burnettk
073424cda0
only touch list-all and stop hitting http endpoint, per code review suggestion
2022-03-11 12:48:17 -05:00
burnettk
eb110f87bd
if a version is not available in node-build, make sure it is not in list-all
2022-03-11 09:26:31 -05:00
Augusto Moura
11532b61d9
fix: change fallbacks to ASDF_DATA_DIR to not include ASDF_DIR
2021-12-24 00:40:45 -03:00
Augusto Moura
e2e0db2aad
chore: add better error messages
2021-11-29 15:00:39 -03:00
Augusto Moura
800e244e78
feat: add commands for managing an internal node-build installation
2021-11-23 21:23:30 -03:00
Michael Poutre
ce7652263a
Fix print_index_tab to ensure cache is written
...
Prior to this change the `tee` call was susceptible to its output being closed causing the pipeline to exit with `SIGPIPE`. This change replaces `tee` with two parts.
1. Write directly to `"$index_file"`
2. `cat` the contents of `"$index_file"` to `stdout`.
This way, if the receiving side of the pipe exits, `cat` will exit without impacting the index cache
Reimplements #264
2021-10-08 15:11:40 -07:00
Guilherme Almeida
95a2091f7b
Fixes bug where plugin path is incorrect ( #249 ) ( #251 )
...
* fix: 🐛 bug where plugin path is incorrect (#249 )
* fix: supports spaces in the path
Co-authored-by: Augusto Moura <me@augustomoura.com>
2021-07-22 14:45:35 -04:00
Augusto Moura
4d9196d0ad
feat(shims): implement new wrapper strategy
...
Now we are using a shim template, we find the true binary in the path
and then call asdf reshim only when necessary
2021-07-19 15:26:56 -03:00
Augusto Moura
6ddcdfdb81
refactor(auto-reshim): add npm wrapper and remove npm hooks
...
Instead of relying in npm global installation hook for auto reshimming,
a pretty obscure functionality of npm, I just wrote a wrapper script
that intercept calls for npm and invokes asdf reshim whenever necessary.
The wrapper needs to be configured manually by the user, following the
practices of other plugins with similar settings.
I also wrote an utility for printing the current wrapper path easing the
configuration of new environments.
README now has an example of how to configure auto-reshimming.
There's also a notice on plugin installation about setting up the
auto-reshimming configuration.
A notice was also added to the install command, so that we reach more
people about the changes.
2021-05-16 21:06:10 -03:00
Yaroslav Rogov
373c38e447
feat: Implement index tab cache ( #219 )
...
* feat: Implement index tab cache
* feat: Switch to etag-based caching
* Update lib/utils.sh
Co-authored-by: Augusto Borges de Moura <augusto.borgesm@gmail.com>
Co-authored-by: Trevor Brown <Stratus3D@users.noreply.github.com>
2021-04-07 10:56:03 -04:00
Michael Cho
2d33055f17
replace Bash 4+ lowercase logic with POSIX alternative using 'tr'
2021-03-06 22:43:35 -08:00
Augusto Moura
c592c7e694
remove dependency on bash 4 associative arrays
2021-02-02 13:47:13 -03:00
Augusto Moura
d921791123
fix: remove hashbang front utils
2021-01-22 17:19:02 -03:00
Augusto Moura
9e4d196781
use pure bash to filter version candidates
...
instead of awk
2021-01-21 17:37:23 -03:00
Augusto Moura
aad7e3c362
separate install functions between alias and canon
2020-10-02 13:11:26 -03:00
Augusto Moura
11e2951ed3
fix lts/ breaking asdf dir versioning
2020-10-02 11:11:40 -03:00
Augusto Moura
929686f880
refactor list all to use the official index.tab
...
also add support for lts aliases, giving it's trivial to implement after
processing the tab
also get better error messages for missing versions
2020-09-23 20:33:03 -03:00
Thomas B Homburg
66f5292b45
Extract gpg key name to env var
2020-05-14 22:32:14 +02:00
Trevor Brown
c975636239
Remove hardcoded plugin name and replace with variable
...
Fixes issue #20
2020-01-14 09:54:39 -05:00