How to create Side By Side formulae/cask sharing the same root folder (probably require code/script for uninstall) #5269
Unanswered
tebeco
asked this question in
Getting started
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
I'm considering adding
cask
fordotnet
anddotnet-sdk
, I know there's one already existing but currently the issue is thatbrew
does not allowSxS
.Many
linux
distro and alsowinget
allow side by side simply by publishing version package per "channel"so currently instead of having a single
cask
nameddotnet-sdk
it would be:dotnet-sdk-6
: LTS - Support until 10/11/2026dotnet-sdk-7
: STS - Support until 14/05/2024dotnet-sdk-8
: LTS - Support until 12/11/2024The current cask for
dotnet-sdk
seems "ok" to mimic, the only question I have is about "unpublish" and "uninstall":brew
point of view of these cask ? as I see it they probably should be removed since they will stop receiving security update and it should be brew job to deal with "unsafe installer" as the original vendor (MSFT in such case) officially stopped shipping it.brew install/update --cask dotnet-sdk-6
should fail, what's the way of doing that ? simply remove the.go / .rb
from the repo here ?dotnet
uses the same root folder and install specific sub-folder for versioningThe current official way to uninstall look like it should be scripted because it look like this:
(generally the recommendation is to keep only the latest per channel, and uninstall every other)
Beta Was this translation helpful? Give feedback.
All reactions