JuliaLang / juliaup

Julia installer and version multiplexer
MIT License
932 stars 81 forks source link

fix `is_juliaup_installed` for invalid path #880

Open t-bltg opened 3 months ago

t-bltg commented 3 months ago

This PR:

t-bltg commented 2 months ago

@davidanthoff, bump ?

davidanthoff commented 2 months ago

Hm, I'm not sure this is a good idea. If the user has a script juliaup on the PATH then things are really broken already, and I'm almost thinking we should just abort install at that point. What would be good is a better error message, for example something like "Your system has a broken juliaup command on the PATH, please first remove that" or something along those lines.

Could you move the unrelated typo fix to a different PR? Thanks!

t-bltg commented 2 months ago

If the user has a script juliaup on the PATH then things are really broken already, and I'm almost thinking we should just abort install at that point

Exactly. Currently, juliaup returns a false positive as exposed in https://github.com/JuliaLang/juliaup/issues/879, and is thus a bug. This PR corrects this behaviour.

t-bltg commented 2 months ago

Could you move the unrelated typo fix to a different PR?

Done in https://github.com/JuliaLang/juliaup/pull/916.