Skip to content

Conversation

@luzat
Copy link
Contributor

@luzat luzat commented Jul 18, 2023

No description provided.

lib/utils.sh Outdated
latest_installed)
_list() {
ASDF_NODEJS_SKIP_NODEBUILD_UPDATE=1 list_installed_versions nodejs
ASDF_NODEJS_SKIP_NODEBUILD_UPDATE=1 list_installed_versions nodejs | sort -V
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think sort -V is available on older versions of MacOS. In asdf we had to do this: https://github.com/asdf-vm/asdf/blob/ccdd47df9b73d0a22235eb06ad4c48eb57360832/lib/commands/command-update.bash#L45-L49

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think sort -V is available on older versions of MacOS. In asdf we had to do this: https://github.com/asdf-vm/asdf/blob/ccdd47df9b73d0a22235eb06ad4c48eb57360832/lib/commands/command-update.bash#L45-L49

This could be used instead. I copied sort_versions into this PR.

As I already noted in #358, asdf itself wants coreutils to be installed on macOS, but I guess that does not include the requirement that GNU sort should be first in $PATH.

@augustobmoura augustobmoura merged commit c36e6f0 into asdf-vm:master Jul 30, 2024
@augustobmoura
Copy link
Member

Thanks @luzat!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants