Commit Graph

461 Commits

Author SHA1 Message Date
Trevor Brown
448f750891
fix: local plugin in then clause too (#1203)
Co-authored-by: Kazuhiro NISHIYAMA <znz@users.noreply.github.com>
2022-04-14 11:10:17 -04:00
Bo Lopker
de6e22f909
fix: remove comments from whole file instead of line by line for performance (#1198) 2022-04-08 10:44:07 -04:00
David le Blanc
afd6224298 Fixed config file parsing to handle "=" in value field. 2022-01-27 11:20:08 -05:00
Trevor Brown
87137e4103
fix: Ban ls command (#1141)
* Ban `ls` command
* Update banned commands test so it only checks bash and sh files
* Only allow `ls` for resolving symlinks
* Replace `ls` commands with `find`
2021-12-29 12:10:39 -05:00
Jochen Schalanda
e61e3d9ade
feat: case-insensitive filtering of unstable versions in latest (#1139)
* feat: case-insensitive filtering of unstable versions in `latest`
* Fix versions in version_commands tests
2021-12-29 08:50:06 -05:00
Yves Blusseau
288468f93f
fix: don't generate on error if backup file doesn't exists (#1057)
Signed-off-by: JrCs <90z7oey02@sneakemail.com>
2021-12-23 11:43:41 -05:00
Alberto de Murga
aafe1e5304
fix: latest --all correctly report plugins as missing (#1118) 2021-12-09 16:49:24 +11:00
Alberto de Murga
f85fef533f
feat(latest): adds the flag --all to the latest command (#1096) 2021-12-05 23:41:27 +11:00
nozaq
5992abb09e
fix: do not print find errors (#1102) 2021-12-05 19:21:57 +11:00
Jonas Thuresson
234778a397
fix: shorthand grep options for alpine support (#1106)
Co-authored-by: James Hegedus <jthegedus@hey.com>
2021-12-05 18:40:19 +11:00
Elijah
cc7778a040
feat: Elvish Shell support (#1066) 2021-11-18 21:05:27 +11:00
Trevor Brown
4b93bc81aa
fix: Sed improvements (#1087) 2021-11-15 19:03:53 +11:00
Chris Rose
41162849cf
fix: clarify the wording when no version is set (#1088)
Co-authored-by: Chris Rose <offline@offby1.net>
Co-authored-by: jthegedus <jthegedus@hey.com>
2021-11-14 14:35:42 +11:00
Radon Rosborough
c911f2d431
fix: Fix plugin-test arg parsing (#1084) 2021-11-08 09:40:53 +11:00
Radon Rosborough
69ff2d0c9a
fix: Quote commands correctly in plugin-test (#1078)
* fix: Quote commands correctly in plugin-test
* make it posix compliant
* default to $SHELL
2021-11-02 09:48:26 -04:00
Max Nordlund
847ec73751
fix: Use more idiomatic fish (#1042)
The use of `.` is deprecated in fish, unlike POSIX shells. We can avoid
calling `psub` and pipe directly into source which does the same thing.

https://fishshell.com/docs/current/cmds/source.html
2021-10-07 09:20:41 -04:00
Alberto de Murga
9430a39aef
feat: Displays a warning when a plugin from the tools-version list does not exist (#1033)
* feat: Displays a warning when the plugin from the tools-version does not exist

When calling the install command, it tried to look for versions for all
the plugins available and installed them. With this change, it will attempt to
find versions for all the installed plugins and plugins defined in the
`.tool-versions`.

Fixes https://github.com/asdf-vm/asdf/issues/574

* feat: Changes the algorithm to detect not installed plugins

This patch changes the algorithm. It preserves the original logic for
the plugin resolution, but at the same time, reports entries with plugins not
available.

* fix: Addresses the pull request comments.

- Changes the comparison to be strict rather than partial.
- Prints a list of missing plugins.
- Exists if at least one plugin is not present.
- Adds unit tests.
2021-10-01 08:38:57 -04:00
Yasunori Fujie
304f72dbb2
feat: add post update plugin support (#1049)
Co-authored-by: James Hegedus <jthegedus@hey.com>
2021-09-24 08:53:52 +10:00
Yasunori Fujie
3e0cb9aaea
fix: help for extension commands for plugins with hyphens in the name. (#1048)
* test: add test for plugin command list in asdf help
* fix: help for plugins containing hyphens
2021-09-23 14:47:26 -04:00
Yasunori Fujie
7e1f2a0d93
fix: wait until the plugin update are finished (#1037) 2021-09-14 09:44:53 -04:00
Filip Chabik
47e8fb051b
fix: sed re error trailing backslash on FreeBSD (#1046). (#1047) 2021-09-13 09:16:13 -04:00
Yasunori Fujie
30d27cbe6b
fix: incorrect usage of grep (#1035) 2021-09-02 15:57:30 -04:00
Jonathan Morley
8490526546
fix: full_version_name is not available here (#1031) 2021-08-27 17:54:47 -04:00
James Hegedus
a3ba5a794c
feat: toggle off repo sync completely (#1011) 2021-08-04 08:41:19 +10:00
James Hegedus
7697e6e344
fix: regex validate plugin names on plugin add cmd (#1010) 2021-07-30 08:49:01 +10:00
Trevor Brown
2ad0f5ea45
fix: allow plugin callbacks to be in any language (#995) 2021-07-30 08:44:14 +10:00
James Hegedus
cd0a6a779e
feat: display plugin repo refs alongside urls in info cmd (#1014) 2021-07-27 08:57:13 +10:00
Mark Yen
39c9999519
fix: ensure shims get created when data dir has spaces (#996) 2021-07-20 14:21:39 +10:00
James Hegedus
60e0e05a9f
ci: automated release workflow (#987)
Co-authored-by: jthegedus <jthegedus@users.noreply.github.com>
2021-07-13 11:32:37 +10:00
Alberto de Murga
664d82ed8a
feat: asdf latest defer to plugin to determine the latest version (#938)
Co-authored-by: James Hegedus <jthegedus@hey.com>
2021-07-07 12:51:19 +10:00
Kevin Lane
5cf8f8962f
fix: support latest with filter on local and global (#633)
Co-authored-by: Thomas B Homburg <thomas@homburg.dk>
Co-authored-by: James Hegedus <jthegedus@hey.com>
2021-07-06 21:17:00 +10:00
Neo Hsu
1716afa021
feat: configurable plugin repo last check time (#957)
Co-authored-by: James Hegedus <jthegedus@hey.com>
2021-06-02 14:22:27 +10:00
Trevor Brown
0f508418e4 Address shellcheck and shfmt warnings 2021-05-24 18:09:35 -04:00
Trevor Brown
4dbe88a62a Remove process substitution from command-list-all.bash file 2021-05-24 17:06:17 -04:00
Trevor Brown
f125741fb5 Update code to use . instead of source 2021-05-21 12:03:06 -04:00
Trevor Brown
156a82cc49
Merge pull request #863 from asdf-vm/ban-process-substitution
Ban process substitution from asdf codebase
2021-05-20 08:44:58 -04:00
Matt
a7d3661f6c
fix: insert error handling in list-all & download plugin scripts (#881) 2021-05-19 19:51:45 +10:00
James Hegedus
b9228a26de
fix: remove find -print0 2021-05-19 19:43:16 +10:00
James Hegedus
26d2c64477
fix: pipe find into while 2021-05-19 19:01:36 +10:00
James Hegedus
10d9c1218e
Merge branch 'master' into ban-process-substitution 2021-04-27 19:34:35 +10:00
jthegedus
43d6fef000 fix: format command-reshim 2021-04-27 19:31:22 +10:00
jthegedus
0c263ad700 fix: typo and refactor on top of master 2021-04-27 19:28:57 +10:00
jthegedus
ade70b94db chore: sync master 2021-04-27 19:28:24 +10:00
jthegedus
6af66dc88c fix: shellcheck errors and typo 2021-04-27 18:04:28 +10:00
James Hegedus
d7b62d2e92
fix: plugin update portability (#924) 2021-04-18 15:03:00 +10:00
James Hegedus
456d8e36ca
fix: <plugin update all> to latest commit on default branch for each plugin (#800) 2021-03-02 17:37:05 +11:00
Trevor Brown
f633811577 Ban process substitution from asdf codebase 2021-02-05 11:28:27 -05:00
Nanda Lopes
dc776c0bc0 Fix find global options warning
find: warning: you have specified the global option -mindepth after the argument
-type, but global options are not positional, i.e., -mindepth affects tests
specified before it as well as those specified after it.  Please specify global
options before other arguments.

find: warning: you have specified the global option -maxdepth after the argument
-type, but global options are not positional, i.e., -maxdepth affects tests
specified before it as well as those specified after it.  Please specify global
options before other arguments.
2021-01-19 11:14:26 -03:00
Jean-Paul Bonnetouche
0de6910d1f fix: shims break when POSIXLY_CORRECT=1
Process substitution isn't specified by POSIX and makes shims break when called by a script that `export POSIXLY_CORRECT=1` (like gitflow [here](https://github.com/nvie/gitflow/blob/develop/git-flow#L78)).

Here we replace `grep -f <(cmd1) <(cmd2)` with `cmd2 | grep -F "$(cmd1)"` so that we can provide a string instead of a file descriptor and get the same result as before.

(Note: We also check if the result of `cmd1` is empty before running `grep` to get the same behavior as with `-f`. This also prevent crashes if null results are piped to `xargs` and fits nicely with the `with_shim_executable` function that already check the result of `$selected_version` before going on).

Fixes: #581
2021-01-14 13:19:27 +01:00
Aaron Jensen
d2b7e2fceb
Update no plugin installed error message (#818) 2020-12-21 11:00:09 +11:00