fix: use first tool version from .tool-versions when multiple are declared#1147
fix: use first tool version from .tool-versions when multiple are declared#1147marnagy wants to merge 15 commits into
Conversation
|
The issue is ready for review, and the acceptance criteria have been met:
|
|
Link to code coverage report (posted by coverbot 🤖) |
There was a problem hiding this comment.
The design of this change is approaching the problem from the wrong angle. Try this instead:
[REMOVED, see later comment]
Also, this fix is missing tests (originally for version_all_from_toolversions but for the suggestion, versions_from_toolversions).
malept
left a comment
There was a problem hiding this comment.
That being said, I think the simpler solution is to just install the first Node.js version and ignore the rest. Still needs regression tests though.
…ests - Use version_from_toolversions (first entry) instead of iterating all versions with version_all_from_toolversions in both shell/ci/env/mise.sh and shell/circleci/machine.sh, as requested by reviewer - Add shell/lib/mise_test.bats with regression tests for version_from_toolversions and version_all_from_toolversions
malept
left a comment
There was a problem hiding this comment.
Remove version_all_from_toolversions, it's unused
malept
left a comment
There was a problem hiding this comment.
- Revert changes in
shell/ci/env/mise.shandshell/circleci/machine.sh, it's not worth changing the order. - Fix function comment for
version_from_toolversions- it's referencing a now-deleted function and the actual change can be better integrated into the doc comment, rather than appending a note at the end. - Add regression tests for
version_from_toolversions.
|
Also probably needs a better PR title |
Co-authored-by: Mark Lee <malept@users.noreply.github.com>
Co-authored-by: Mark Lee <malept@users.noreply.github.com>
Please read CONTRIBUTING.md for additional information on contributing to this repository!
What this PR does / why we need it
What is says on the tin.
Jira ID
DT-5340
Notes for your reviewers
Rovo Dev code review: Rovo Dev has reviewed this pull request
Any suggestions or improvements have been posted as pull request comments.