Commit Graph

19 Commits

Author SHA1 Message Date
Augusto Moura
1a70296fdc
fix: add correct default for concurrency 2021-11-29 12:48:30 -03:00
Augusto Moura
67c382b8a2
docs: update README com new information about installation 2021-11-24 00:20:25 -03:00
Augusto Moura
ee8daa2b75
feat: remove previous integrity check logic 2021-11-23 23:35:25 -03:00
Augusto Moura
c4e335f872
feat: modify install to use node-build behind the scenes 2021-11-23 23:08:14 -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