Commit Graph

1010 Commits

Author SHA1 Message Date
Trevor Brown
4c4590c6e6 Update resolve_symlink function so it always returns absolute paths. 2018-10-07 21:47:57 -04:00
Trevor Brown
2bc679084f Add test for the resolve_symlink function. 2018-10-07 21:47:57 -04:00
Trevor Brown
64d4e145a1
Merge pull request #369 from asdf-vm/dont-install-system-versions
Dont install system versions
2018-10-07 14:47:02 -04:00
Trevor Brown
e095ed5efa Don't install system versions. 2018-10-07 14:35:36 -04:00
Trevor Brown
39687b5a94 Add test for not installing system versions. 2018-10-07 14:31:30 -04:00
Trevor Brown
af5393d563 Move current_command test into current_command.bats. 2018-10-07 14:22:31 -04:00
Trevor Brown
0fdc972cfa
Merge pull request #368 from josacar/asdf-current
Fix asdf current behaviour
2018-10-04 15:15:27 -04:00
Jose Luis Salas
448d3215d8
Fix asdf current behaviour
Closes: #353
2018-10-04 21:00:29 +02:00
Trevor Brown
9a0edd7cc0
Merge pull request #365 from josacar/document_asdf_data_dir
Document asdf data dir
2018-09-27 21:36:46 -04:00
Jose Luis Salas
5acef7c9bf
Remove get_install_type and fix indentation 2018-09-27 22:18:36 +02:00
Jose Luis Salas
7bb11c18ad
Add ASDF_DATA_DIR in README.md 2018-09-27 22:18:36 +02:00
Trevor Brown
fc8de39a5f
Merge pull request #364 from josacar/master
Fix user shims stored now in ASDF_DATA_DIR
2018-09-24 12:18:02 -04:00
Jose Luis Salas
0a9cd676f4
Fix user shims stored now in ASDF_DATA_DIR 2018-09-24 17:47:49 +02:00
Trevor Brown
266e3cffa5
Merge pull request #360 from teixeiradiego/reshim-fix
Fix reshim to generate shims only for executable files and not directories.
2018-09-19 08:16:33 -04:00
Diego Nogueira Teixeira
20bb61963d Implemented tests for shim generation only for executable files, not directories. 2018-09-19 09:00:11 -03:00
Trevor Brown
d9603e1abc
Merge pull request #362 from asdf-vm/another-data-dir-test
Add another test for the ASDF_DATA_DIR functionality.
2018-09-18 20:30:05 -04:00
Matt Wean
c468ae7d6a Add another test for the ASDF_DATA_DIR functionality. 2018-09-18 20:21:46 -04:00
Diego Nogueira Teixeira
28c0576d17 Fix reshim to create shim only for executable files and not directories. 2018-09-18 10:38:22 -03:00
Trevor Brown
6ee3e4043c
Merge pull request #358 from nate/make-optional-install-args-look-optional
Make help text reflect that <name> and <version> are optional in `asdf install` command
2018-09-17 17:45:42 -04:00
Nathan Sutton
79d188604b Make help text reflect that <name> and <version> are optional in asdf install command 2018-09-17 16:29:32 -05:00
Trevor Brown
2e27ceb090
Merge pull request #335 from josacar/user-install-directory
Install data outside asdf installation directory
2018-09-16 22:36:08 -04:00
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