quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.98k stars 328 forks source link

macos installers - detect multiple user/top-level installations? #11537

Open cscheid opened 4 days ago

cscheid commented 4 days ago

See https://bsky.app/profile/bweatherson.bsky.social/post/3lbubjzih422w -

"If you use a Mac, and upgrade Quarto, and don't remember each time whether you're installing for "Just this user" or "All users", you end up with two distinct installations and this can lead to unpleasant confusion."

pkgbuild has preinstall and postinstall scripts. We could, in principle, attempt to detect if an existing version of Quarto looks to be installed in a different path than that requested by the user.

The problem is what, if anything, we should do about it. I don't think we should prevent the installation altogether, because some users might legitimately want a user with a different version than that of the system. At the same time, I don't think preinstall scripts can ask for interactive confirmation or anything like that.

mcanouil commented 4 days ago

Just a word of caution as the package is not necessarily used directly by users, i.e., Homebrew is using it.