Skip to content

Conversation

@ChadThackray
Copy link
Contributor

As per #130, running something like

basher install UrbanCompass/hnvm@v0.15.10

would result in an error like

find: /Users/joseph.galindo/.basher/cellar/packages/UrbanCompass/hnvm@v0.15.10: No such file or directory

This regression was introduced in e4fea83. (By me 😅). The version is stripped from the package name but not from the folder name. Thus there is a mismatch and the linking fails.

I've also enhanced one of the test cases to catch this in future

…banCompass/hnvm@v0.15.10` with no custom folder name would result in an error
Comment on lines +64 to +66
if [ "$custom_folder" = "false" ]; then
folder="$package"
fi

Choose a reason for hiding this comment

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

Ah okay I had it backwards, so the regression was related to adding support for the new custom folder arg. Which explains why I couldn't see it on really old basher releases (they didn't have the custom folder arg yet).

Thanks for looking into this, this lgtm.


if [[ "$package" = */*@* ]]; then
IFS=@ read -r package ref <<< "$package"
if [ "$custom_folder" = "false" ]; then
Copy link

@joseph-galindo joseph-galindo Nov 7, 2025

Choose a reason for hiding this comment

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

L38 nit

"argunment" -> "argument"

Not really related to this PR, I noticed it and wanted to at least write it down


assert_line "basher-_clone false github.com username/package v1.2.3"
assert_line "basher-_deps username/package"
assert_line "basher-_link-bins username/package"

Choose a reason for hiding this comment

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

Nice

@juanibiapina
Copy link
Member

Thanks for the contributions and review :)

@juanibiapina juanibiapina merged commit 7c3d238 into basherpm:master Nov 18, 2025
8 checks passed
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.

3 participants