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
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.
* 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>
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.
'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
On some platforms, including Fedora and derivatives, and Arch and
derivatives, the binary `shasum` does not exist. Instead, sha256sum
should be used.
This patch checks for the existence of sha256sum, as well as shasum,
and uses whichever is present. If none are present, a helpful error
message is printed out.
Tested on Fedora 28
- Scenarios tested:
-------------------------------
| Sha256sum | shasum | Works? |
| Yes | No | Yes |
| No | Yes | Yes |
| Yes | Yes | Yes |
| No | No | Yes |
-------------------------------
A bug existed where, if no versions of `node` and `npm` are installed
already, running `asdf install node <version>` while having any packages
listed inside `.default-npm-packages` would fail to install those
default packages because the newly installed node version's `bin`
directory is not in the `PATH` yet.
Fixes#67
On some linux's sort command does not take the `-V` option (Alpine base image with busybox). Use a more portable `sort_versions` from rbenv. Also I guess this removes the dependency on gsort in OSX.