Commit Graph

12 Commits

Author SHA1 Message Date
Edwin Kofler
86477ee8de
fix: assign default values to all internal variables (#1518) 2023-03-27 00:24:16 +00:00
Edwin Kofler
d81b81f9de
fix: Remove == inside [ (#1421)
* lint(checkstyle): Miscellaneous tweaks
* lint(checkstyle): Add 'no-double-equals' rule
* lint: Remove double equals from `[`
* chore: Remove final double equals

Co-authored-by: Trevor Brown <Stratus3D@users.noreply.github.com>
2023-01-14 08:18:44 -05:00
Edwin Kofler
670c96d1a6
fix: Allow path: versions to use ~ (#1403) 2023-01-06 07:08:48 -05:00
Trevor Brown
4125d2b556
fix: correct order of checks in conditional for adding a missing newline (#1418)
We need to add trailing newlines to .tool-versions file before appending
a new version to the file. The order of the checks was wrong here as the
first check assumed the file existed, and the second checked if it did.
Switching them fixes the issue.

This fix was provided by @h3y6e

Fixes #1417
2023-01-05 09:39:53 -05:00
Edwin Kofler
f522ab9879
fix: Remove usage of $(pwd) in favor of $PWD 2022-12-30 01:57:35 -08:00
Edwin Kofler
3492043241
fix: lint errors from scripts/checkstyle.py (#1385)
Co-authored-by: James Hegedus <jthegedus@hey.com>
2022-12-23 20:53:22 +11:00
Lorenzo Gallucci
5334d1db3d
fix: excludes "milestone" releases in "latest" command (#1307)
Fixes #1306
2022-07-25 16:05:09 -04:00
Trevor Brown
eb7dac3a2b
fix: append trailing newline to .tool-versions files when missing (#1310)
If a .tool-versions file did not end with a newline new tools and
versions would get appended to the same line rather than properly
added on a new line in the file

Fixes #1299
2022-07-25 09:23:43 -04:00
Trevor Brown
711ad99104
fix: always use ASDF_DEFAULT_TOOL_VERSIONS_FILENAME for filename when present (#1238)
* fix: always use ASDF_DEFAULT_TOOL_VERSIONS_FILENAME for filename when present
* fix: correct version command unit tests for ASDF_DEFAULT_TOOL_VERSIONS_FILENAME

Fixes #1082
2022-05-27 07:50:04 -04:00
Trevor Brown
788ccab597
fix: only iterate over directories in the plugins/ directory (#1228)
Fixes part of #1029
2022-05-12 07:48:54 -04:00
Ignacio El Kadre
91136234e9 fix: instead /tmp, use TMPDIR if defined 2022-05-09 08:09:27 -04:00
Trevor Brown
27f7ef7852
fix: don't invoke asdf inside asdf commands (#1208)
* fix: don't invoke asdf inside asdf commands

Recursive calls have a number of disadvantages:

* Poorer performance since each invocation spawns and new process and re-executes all the code in bin/asdf
* Makes debugging more difficult
* More likely to introduce subtle bugs and the possibility for infinite loops
2022-04-25 08:45:19 -04:00