-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to install specific builds of a JDK? #50
Comments
I think it's possible to keep all versions as separate casks. That will require a few changes to the updater app. I can try to implement this when I have some free time, but can't promise when unfortunately. As always all contributions are welcome. |
I had a look at updater and while I can't make any promises, I am interested to look into this further. There are a few things to discuss though. Version Definitions Default Version Double Versioning Conflicts I don't know is this is something you want to support or how often someone might need to have multiple minor versions but it might be possible by switching to off-topic: Zulu API |
That is my understanding. They abandoned versioning a long time ago so this is basically a trick to emulate it.
Cool! This definitely sounds desirable. I'm curious what happens when you install a specific version and then the alias. Does it no op? Then then if you uninstall the specific version it should also be a no op as the alias is still "installed". Or here's another one: you install a specific version and the alias, and then the alias changes. Does upgrade install the newer version and keep the old? I assume so, but we should test it.
I don't hate this, but if we are doing aliases perhaps we can start with
That would have been my suggestion. I think we can also install into
Let's either do it before or after as a separate change. But sounds like it is the direction they are going. |
From exploring brew source code my understanding is that aliases are only used when trying to resolve a formula name passed as argument to brew to an actual formula definition after which it's indifferentiable from a non-alias. The aliases aren't separate formula either - they don't know up on e.g. After installation there is no reference to the alias - The I created an Alias for one of these casks and it was unable to resolve it - however trying to install it without
I think this might be the way to go at some stage as like you said it prevent requiring sudo but also if installation is moved to ~/Library could this be converted to a formula instead of a cask? (Or are there other home-brew limitations forcing this to be a cask other than the .pkg install?) Moving a formula could open up the use of Aliases
I'll take a look at the migration article and perhaps do the migration before the versioning |
Okay. That makes sense. But also means it sounds like a non-starter for use here. Ultimately it's not that big of a deal since 100% of the files are generated rather than hand-written. |
I was wondering whether it's possible to extend these casks to allow users to install a specific of JDKs?
I've had a few instances where I've ran into bugs on the latest JDK build where the only build is to downgrade to a previous build until the issue is fixed on the latest release. It would be nice to be able to install older versions through brew (e.g.
zulu-jdk@17.0.6
) instead of having to manually install the version through the dmg.Example Issue which requires downgrading
The text was updated successfully, but these errors were encountered: