Commit Graph

889 Commits

Author SHA1 Message Date
Jose Luis Salas
d1782f456e
Retrieve asdf_data_dir from environment variable 2018-09-16 18:39:21 +02:00
Victor Hugo Borja
a4fc43e682 plugin-test: check Auth is used when list-all uses Github API
Many plugins were having this problem where they rely on accessing
GitHub's API for listing versions from some repo releases. But not
setting an Authorization token for `curl`, causes the test to fail.

We now detect that if the plugin `list-all` looks like accessing
`api.github.com` and if so, we also try to guess if the Authroization
header will be set. If not, we fail the test and head the plugin author
to some documentation on how to add it.

Hope this reduces the number of failures due to GitHub API rate
limiting on travis.
2018-08-29 23:19:30 -07:00
Victor Hugo Borja
950853d9e6 test plugin in subshell and from isolated asdf
The subshell sources the isolated asdf environment, making the asdf
command available. In some plugin tests we were having failures do
to the asdf bin not set on PATH.
2018-08-29 23:16:01 -07:00
Daniel Perez
c060b4c390
Merge pull request #348 from asdf-vm/fix-fish-completions
Fix fish shell completions
2018-08-25 09:10:20 +02:00
Daniel Perez
8ae7be11f7 Fix fish shell completions 2018-08-24 13:25:38 +02:00
Jose Luis Salas
c86707c55f
Add config option to install plugins in $HOME/.asdf 2018-08-11 15:37:56 +02:00
Trevor Brown
6e9da8af0c Update version to 0.5.1 2018-07-30 09:28:47 -04:00
Trevor Brown
e872db1bd8 Preparing for 0.5.1 release. 2018-07-30 09:11:51 -04:00
Trevor Brown
a8ee53f5ad Disable shellcheck warning for echo statement. 2018-07-14 20:14:02 -04:00
Trevor Brown
bd8f7d9139 Print helpful error message when $ASDF_DIR is not a directory. 2018-07-14 20:01:09 -04:00
Trevor Brown
f5b5cf379d Merge branch 'rafaelliu-fix-subshell-command' 2018-07-14 09:49:03 -04:00
Trevor Brown
6d63496528 Switch from return to exit 1 when ASDF_DIR is not a dir. 2018-07-14 09:47:33 -04:00
Daniel Perez
657cef833a Merge pull request #340 from friedenberg/master
Fix issue with Fish shell shim loading script
2018-07-14 09:40:27 -04:00
Sasha Friedenberg
3a4b9042e3 Fix issue with Fish shell shim loading script 2018-07-14 09:40:27 -04:00
Trevor Brown
a9f3d6ca1f Merge pull request #337 from Stratus3D/symlink-tests
Symlink fix and tests
2018-07-14 09:40:26 -04:00
Trevor Brown
66e96d59b3 Merge pull request #331 from brennanfee/fix-330-asdf-list
Fix for #330 - "asdf list" spacing
2018-07-14 09:40:26 -04:00
Trevor Brown
696f7b0f69 Switch to single quotes for sed regex. 2018-07-14 09:40:26 -04:00
Trevor Brown
ee9d7435bc Merge pull request #336 from Stratus3D/fix-shellcheck-warnings
Fix shellcheck warnings.
2018-07-14 09:40:26 -04:00
Trevor Brown
efa5c5c3e6 Ignore shellcheck warning. 2018-07-14 09:40:26 -04:00
Trevor Brown
b88110469f Fix shellcheck warnings. 2018-07-14 09:40:26 -04:00
Trevor Brown
34ad911539 Resolve symlink paths before altering .tool-version files. 2018-07-14 09:40:26 -04:00
Trevor Brown
f7b71ba86a Add tests for symlink preservation. 2018-07-14 09:40:26 -04:00
Trevor Brown
feaebe53df Add readlink to list of banned commands. 2018-07-14 09:40:26 -04:00
Daniel Perez
cee3659790
Merge pull request #340 from friedenberg/master
Fix issue with Fish shell shim loading script
2018-07-14 11:49:08 +09:00
Sasha Friedenberg
adfe8c188b Fix issue with Fish shell shim loading script 2018-07-11 13:14:30 -04:00
Trevor Brown
9a525d6bca
Merge pull request #337 from Stratus3D/symlink-tests
Symlink fix and tests
2018-06-17 19:37:11 -04:00
Trevor Brown
bcdc5e0ba7 Switch to single quotes for sed regex. 2018-06-17 19:31:36 -04:00
Trevor Brown
001cd6022f Ignore shellcheck warning. 2018-06-16 23:07:17 -04:00
Trevor Brown
631ad8a005 Resolve symlink paths before altering .tool-version files. 2018-06-16 22:59:37 -04:00
Trevor Brown
c7fb348ffd Add tests for symlink preservation. 2018-06-16 22:48:16 -04:00
Trevor Brown
4a4f453a93 Add readlink to list of banned commands. 2018-06-16 20:19:33 -04:00
Trevor Brown
c1ce9de4d4
Merge pull request #331 from brennanfee/fix-330-asdf-list
Fix for #330 - "asdf list" spacing
2018-06-16 15:30:35 -04:00
Trevor Brown
5e494f28e7
Merge pull request #336 from Stratus3D/fix-shellcheck-warnings
Fix shellcheck warnings.
2018-06-16 15:29:24 -04:00
Trevor Brown
1b44fa7549 Fix shellcheck warnings. 2018-06-16 15:26:02 -04:00
rafaelliu
fb4fc79be7 Adding back check if directory exists 2018-06-06 19:06:13 -07:00
rafaelliu
ae31774c69 Fixes #333, there was a unnecessary cd issued (typo?) within a $ subshell on asdf.sh 2018-06-06 18:37:57 -07:00
Brennan Fee
ba1b181b58 Fixing unit tests for 'asdf list'
Now that we put spacing in front of the version #'s the tests need to
reflect that.
2018-06-01 10:15:40 -05:00
Trevor Brown
92c36393fa
Merge pull request #328 from brennanfee/master
Fix another spot for plugin-name env var lookup
2018-06-01 08:54:16 -04:00
Brennan Fee
8a018715c7
Fix for #330 - "asdf list" spacing
In order to make the output of "asdf list" a bit easier to read, this commit adds two spaces to the front of each version being written so as to indent them under the plugin.
2018-05-31 11:45:20 -05:00
Brennan Fee
4cb89b152c
Fix another spot for plugin-name env var lookup
After fixing #319 I wondered if there were any other spots where the same/similar bug existed.  I found one other location at line 126 in utils.sh.
2018-05-31 10:46:04 -05:00
Trevor Brown
d0b8c2ad68
Merge pull request #326 from brennanfee/master
Fix for #319
2018-05-30 22:48:31 -04:00
Brennan Fee
67bc9539d1 Fix for #319
Fixed #319 by forcing all dashes to underscores in the plugin name.
Shell variables don't allow dash.
2018-05-30 20:02:23 -05:00
Trevor Brown
877215ea79
Merge pull request #325 from sgnd/patch-1
Step for restart shell
2018-05-30 15:27:25 -04:00
Sugeng Agung Suganda
60113de677
Step for restart shell 2018-05-30 11:37:41 -07:00
Trevor Brown
878f0e9459
Merge pull request #323 from the-mikedavis/existing-plugin-exit-code
Make the exit code of an already installed plugin distinct
2018-05-30 09:11:38 -04:00
Michael Davis
3f51d3a5ab Change exit code from 0 -> 2 2018-05-29 21:47:46 -05:00
Trevor Brown
3bcbc69ed3 Update version to 0.5.0 2018-05-28 15:15:03 -04:00
Trevor Brown
d0b9b837c9 Remove -dev tag from 0.5.0 version in changelog. 2018-05-28 15:14:52 -04:00
Trevor Brown
c041c930c5 Update CHANGELOG.md in preparation for 0.5.0 release. 2018-05-28 15:09:49 -04:00
Michael Davis
c4a2ffb356 Make exit code of an already installed plugin 0
When plugin-add is called on a plugin that's already installed, asdf
will return 0.
2018-05-25 13:26:48 -05:00