Commit Graph

352 Commits

Author SHA1 Message Date
Augusto Moura
b842e07571
Merge pull request #279 from augustobmoura/fix/data-dir-resolve
Change fallbacks to ASDF_DATA_DIR to not include ASDF_DIR
2021-12-24 00:45:06 -03: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
05a7fc6269
feat: add auto reshim for npm link 2021-12-24 00:31:16 -03:00
Augusto Moura
0237452eb2
Merge pull request #274 from augustobmoura/fix/remove-bc-dependency
Remove dependency on bc in favor of a pure bash implementation
2021-12-20 17:13:20 -03:00
Augusto Moura
f08937dfa3
fix: remove dependency on bc in favor of a pure bash alternative 2021-12-20 17:09:07 -03:00
Augusto Moura
6430bd8e82
Merge pull request #272 from augustobmoura/feature/nodenv-build-system
Use node-build as main installation/building drive
2021-12-20 12:58:26 -03:00
Augusto Moura
b58ae2359f
fix: add fallback for unbound variables in bash3 2021-12-16 21:10:58 -03:00
Augusto Moura
e0d3804a55
docs: better explanation of manually updating node-build 2021-12-15 14:17:39 -03:00
Augusto Moura
363c0d1d9f
fix: add fallback for empty arrays in bash3 2021-12-15 14:07:51 -03:00
Augusto Moura
dcc73aea0e
fix: fix typos & revert import of utils.sh 2021-12-13 22:50:58 -03:00
Augusto Moura
3e44540e9a
docs: better wording for the README 2021-12-07 00:15:06 -03:00
Augusto Moura
58859abcd5
chore: better messages 2021-12-07 00:03:28 -03:00
Augusto Moura
e2e0db2aad
chore: add better error messages 2021-11-29 15:00:39 -03:00
Augusto Moura
07fe573c33
docs: add section for running the wrapped node-build command
also some minor text adjustments
2021-11-29 12:53:18 -03:00
Augusto Moura
1dd98c407c
typo: change defitions to definitions 2021-11-29 12:49:58 -03:00
Augusto Moura
1a70296fdc
fix: add correct default for concurrency 2021-11-29 12:48:30 -03:00
Augusto Moura
94bd796e02
docs: add information on nodebuild commands 2021-11-29 12:48:06 -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
Augusto Moura
54113a909b
feat: add parsing for lts/* aliases on legacy files (#194)
* feat: add parsing for lts/* aliases on legacy files
* refactor: better sed replace pattern
* fix: add correct replacement for lts/*
2021-11-11 10:13:39 -05:00
Pascal Martel
1bc55cb601
Fallback on source code build when no binary available (#207) 2021-10-29 21:40:13 -04:00
Augusto Moura
794b653b2a
Merge pull request #265 from M1kep/fix-cache-early-exit-v2
Fix print_index_tab to ensure cache is written
2021-10-11 14:24:34 -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
Michael Poutre
18f2a58981
Revert "Fix resolve_version_query to not kill tee in filter_version_candidates (#264)"
This reverts commit a32e6c9751.
2021-10-08 14:56:17 -07:00
Michael Poutre
a32e6c9751
Fix resolve_version_query to not kill tee in filter_version_candidates (#264)
Prior to this change the awk 'prog' contained an exit command. When tee attempted to write to the stdout at this point, it received a SIGPIPE signal and exited with an error code of 141. I can't seem to find a way to have tee ignore this signal, but I don't believe the overhead of awk doing a small comparison will have a large/any performance impact especially relative to the processing in filter_version_candidates

Fixes #263
2021-10-07 08:15:13 -04:00
Augusto Moura
c873ec9d13
Merge pull request #262 from augustobmoura/feat/shim-fallback-bin-search
Add fallback method of finding the npm bin on the shim
2021-10-02 22:48:48 -03:00
Augusto Moura
782a2f87c4
fix: fix plugin_name with wrong value 2021-10-02 22:44:34 -03:00
Augusto Moura
000c048edd
fix: remove unused quote_path fucntion 2021-10-02 22:41:53 -03:00
Augusto Moura
ba13ea3e67
fix: fix print call instead of printf 2021-10-02 21:31:22 -03:00
Augusto Moura
a9c3e49531
feat: add fallback method of finding the npm bin 2021-10-02 20:52:47 -03: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
Christoph Geschwind
e2d0822f05
Fix Installation Instructions (#247)
The `<name>` param of `asdf plugin add <name> [<git-url>]` got lost, resulting in:

```
$ asdf plugin add https://github.com/asdf-vm/asdf-nodejs.git
plugin https://github.com/asdf-vm/asdf-nodejs.git not found in repository
```
2021-07-21 08:06:07 -04:00
Augusto Borges de Moura
369c064003
Merge pull request #246 from augustobmoura/fix/add-cleanup-postinstall
fix: add a cleanup postinstall
2021-07-19 20:25:55 -03:00
Augusto Moura
379112e1ec
fix: add a cleanup postinstall
To remove the older mechanism of auto-reshimming in already existing
installations
2021-07-19 20:23:40 -03:00
Augusto Borges de Moura
c0f37e2d14
Merge pull request #232 from augustobmoura/feature/npm-wrapper
refactor(auto-reshim): add npm wrapper and remove npm hooks
2021-07-19 19:32:13 -03:00
Augusto Moura
a8da424811
style: typo 2021-07-19 19:30:43 -03:00
Augusto Moura
12ce1bfd81
fix: adds support for pipe in paths 2021-07-19 15:44:21 -03: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
ad32fc9918
Merge branch 'master' into feature/npm-wrapper 2021-07-19 14:39:56 -03:00
Josh Taylor
ea133489c6
Remove broken keyservers (#240)
Co-authored-by: Josh <you@example.com>
2021-06-25 10:39:03 -04:00
Victor Chagas Seibert
7efbf9badb
Updating plugin add command (#238)
The command is in the old version
2021-06-16 09:18:52 -04:00
Augusto Moura
afef8037e4
chore: add more spacing in the plugin-add message 2021-05-16 21:14:54 -03:00
Augusto Moura
54945fc70f
chore: flip executable flag of the post-plugin-add 2021-05-16 21:12:59 -03:00
Augusto Moura
48bda37236
chore: typos 2021-05-16 21:09:27 -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
Augusto Borges de Moura
d2adc081be
Merge pull request #229 from Roman2K/master
Add support for ASDF_CONCURRENCY
2021-05-01 19:08:51 -03:00
villu164
cb61e3ddf9
Update install for better error message (#230)
* Clarify improved GPG error message.

Co-authored-by: Trevor Brown <Stratus3D@users.noreply.github.com>
2021-04-20 08:17:09 -04:00
Roman Le Négrate
45024fd545
add support for ASDF_CONCURRENCY 2021-04-17 21:50:40 +02:00