Commit Graph

128 Commits

Author SHA1 Message Date
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 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
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
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
Sora Morimoto
33be686716 Fix path priority for global npm (#212)
* Fix path priority for global npm

Signed-off-by: Sora Morimoto <sora@morimoto.io>

* Remove bin/exec-path

Signed-off-by: Sora Morimoto <sora@morimoto.io>
2021-04-09 13:41:07 -03:00
Yaroslav Rogov
e0f49386c9 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-09 13:41:07 -03:00
Yaroslav Rogov
b87aca1b9a Fix tac on OSX if coreutils are linked in path (#216)
* Fix tac on osx if coreutils are linked in path
* Change fallback condition for `tac`. Provide space-safe implementation
2021-04-09 13:41:07 -03:00
john r. durand
6778954108 Fix use of tac on macOS. 2021-04-09 13:41:07 -03:00
Dave Ashby
9a093d4be5 tweak automatic key import 2021-04-09 13:41:07 -03:00
Dave Ashby
e0f170fc52 tweak gpg check and add automatic key installation 2021-04-09 13:41:07 -03:00
Dave Ashby
addbaaa751 Add check to see if key already exists locally before querying keyservers 2021-04-09 13:41:07 -03:00
Augusto Moura
a82ac52b05 use pure bash to filter version candidates
instead of awk
2021-04-09 13:41:07 -03:00
Augusto Moura
e6ace0fca5 separate install functions between alias and canon 2021-04-09 13:41:07 -03:00
Augusto Moura
6b287904e4 install alias as symlinks to real versions 2021-04-09 13:41:07 -03:00
Augusto Moura
753b4a7b26 add better formatting and commentaries 2021-04-09 13:41:06 -03:00
Augusto Moura
465cff44aa fix typo in the filter versions function
I forgot to commit the change in name on the list_all script
2021-04-09 13:41:06 -03:00
Augusto Moura
d5d2ea6ce9 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
2021-04-09 13:41:06 -03:00
gfyoung
e832fd0f12 Sync NodeJS gpg keys 2021-04-09 13:41:06 -03:00
Adam Hawkins
6cd8bc40b2 fix(bin): add --yes to confirm GPG overwrite 2021-04-09 13:41:06 -03:00
Adam Hawkins
2abce68edc fix(bin): close #165
This file may already exist. It's unclear why this happens though.
2021-04-09 13:41:06 -03:00
Brian van Burken
3bff0719af Support non-default default-npm-packages location. 2021-04-09 13:41:06 -03:00
Trevor Brown
adb47b8bc9 Add comment on individual uname -m clause 2021-04-09 13:41:06 -03:00
Nicolas Caille
cc7c7d20ae add 'amd64' in install script function get_nodejs_machine_hardware_name for FreeBSD 2021-04-09 13:41:06 -03:00
Ben Limmer
f0cc64c799
Update bin/install
Co-authored-by: Augusto Borges de Moura <augusto.borgesm@gmail.com>
2021-04-09 10:18:04 -06:00
Ben Limmer
44cff5c4b0
Suggest updating plugin upon failure 2020-11-14 14:17:18 -07:00
Nazar Hussain
403bfcd01b
🔒 Update relevant previous keys and add reference to readme 2020-10-28 16:57:08 +01:00
Nazar Hussain
4bb90e8d0c
🔒 Update nodejs release keys 2020-10-28 11:46:41 +01:00
XX-NF-XX
44145c16d0
Add new release keys
- Richard Lau - C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C
- Ruy Adorno - 108F52B48DB57BB0CC439B2997B01419BD92F80A
Node.js 14.10.0 is signed with the key of Richard Lau.
[Official list of release keys](https://github.com/nodejs/node/#release-keys)
2020-09-09 00:39:29 +03:00
Thomas B Homburg
66f5292b45 Extract gpg key name to env var 2020-05-14 22:32:14 +02:00
Thomas B Homburg
b7430cbecc Fix install 2020-05-13 17:43:43 +02:00
Thomas B Homburg
c3aec726a2 Import and use gpg keys in separate keyring
Using separate gpg keyring file in
~/.gnupg/asdf-nodejs.gpg to avoid
mixing with default keyring
2020-05-13 17:43:43 +02:00
Trevor Brown
cd3a1a7ddb
Merge pull request #162 from homburg/fix/default-packages-install-location
Fix `.default-npm-packages` install location
2020-05-12 15:52:11 -04:00
天驱 · 练剑 / TianQu · LianJian
4c4d4ef6c7
--check to -c for busybox
when use asdf-node in docker image alpine
```
sha256sum: unrecognized option: check
BusyBox v1.31.1 () multi-call binary.

Usage: sha256sum [-c[sw]] [FILE]...

Print or check SHA256 checksums

        -c      Check sums against list in FILEs
        -s      Don't output anything, status code shows success
        -w      Warn about improperly formatted checksum lines
```
2020-05-10 04:07:59 +08:00
Thomas B Homburg
4b6591e3bb Fix .default-npm-packages install location 2020-05-08 15:01:03 +02:00
Ryan Roden-Corrent
dd80ca0fbf
Align install PGP warning with README
If you haven't imported the necessary PGP keys, the installer will print an error about "bootstrapping trust" and direct you to the README. However, the words "bootstrap" and "trust" never appear in the README.

This adjusts the warning to include some words that you can actually search the README for.
2020-02-25 16:01:05 -05:00
Trevor Brown
c975636239 Remove hardcoded plugin name and replace with variable
Fixes issue #20
2020-01-14 09:54:39 -05:00
Trevor Brown
7b4f11365a Hide gpg signature trust warning 2019-12-20 10:32:47 -05:00
Trevor Brown
3fb3356b65 Use gpg2 if gpg command is missing 2019-12-19 10:06:12 -05:00
Thibaut Barrère
5244d19cdd
Update link to list of keys 2019-10-18 16:28:07 +02:00
Ryan Bigg
ad152f3b72 Use 'command' over 'which' to check for shasum
'command' is a shell builtin on all current shells

'which' is not builtin to bash, and if the node 'which' package is installed, that package may interfere

See https://github.com/asdf-vm/asdf-nodejs/issues/137 for an example of that interference
2019-10-03 14:44:10 +10:00
Rohan Talip
b48c4bcffd
Updated postinstall to fix typo 2019-06-03 13:18:07 -07:00
Thomas B Homburg
7677cbfa78 Get command exit code without exiting 2019-05-03 13:16:52 +02:00
Thomas B Homburg
1656548338 Fix bash ansi color output 2019-05-03 13:14:59 +02:00
David Nicolson
6188c0dc71 Use UTF-8 for output 2019-02-24 21:35:15 +01:00