bash-it/test
cornfeedhobo e690f21e4e
Ensure goenv and go play together well
This PR seeks to address several issues surrounding the go and goenv plugins.
The nature of goenv allows for a situation where the initial shell does not
point to a working go binary, and instead at the included shim script. The
result is that one must run reload after moving to a project directory with a
version file, however in doing so, PATH is updated, requiring they exit the
shell or risk lookup collisions and unexpected behavior.

This is solved by using preexec to check the version before changing
directories and restarting the shell if the version has changed. The exec
pattern is copied from _bash-it-restart, but is edited to support this specific
use case.

Additionally, tests have been uploaded and these are now being linted.
2021-02-04 23:51:17 -06:00
..
bash_it test: Make `rsync` optional 2020-05-11 02:30:10 +02:00
completion Merge pull request #1626 from NoahGorny/update-to-stable-or-unstable 2020-10-16 14:16:06 +03:00
fixtures Adding preexec as a vendored library 2021-01-23 18:31:18 +01:00
install Add option to append template to existing config (#1723) 2020-12-11 16:32:23 +02:00
lib Add tests for _binary_exists 2020-10-21 11:02:55 +03:00
plugins Ensure goenv and go play together well 2021-02-04 23:51:17 -06:00
themes tests: Include lib log 2020-07-02 21:11:40 +03:00
lint-requirements.txt ci: Add pre-commit run and remove trailling spaces 2020-10-28 11:51:04 +02:00
run Updated GNU parallel detection 2020-04-21 08:25:40 +02:00
test_helper.bash test: helper: cite plumbing metadata 2021-01-23 23:04:29 +02:00