Skip to content
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

Add support for displaying versions in list command #5987

Closed
wants to merge 1 commit into from
Closed

Add support for displaying versions in list command #5987

wants to merge 1 commit into from

Conversation

coder17934
Copy link
Contributor

Adds a --versions switch to brew cask list that shows the
versions of installed Casks.

Uses the same flag as Homebrew does, see brew list --versions [formulae]

Adds a '--versions' switch to 'brew cask list' that shows the
versions of installed Casks.
@rolandwalker
Copy link
Contributor

Thanks! We would like to match Homebrew semantics whenever possible.

The only reason I haven't merged this yet is that I intend to update the man page.

@federicobond
Copy link
Contributor

The one problem I see with this implementation is that it lists latest rather than installed versions, so it differs with its homebrew counterpart.

@rolandwalker
Copy link
Contributor

Oh right, and we don't provide an interface to that information yet. This PR would match Homebrew's syntax, but not Homebrew's semantics.

It will be a number of weeks until we add the relevant functionality, but on the other hand it is merely weeks. Let's leave this PR open?

@coder17934
Copy link
Contributor Author

@federicobond You are absolutely right, I was unsure of how to handle self-updating casks.

@rolandwalker Does that mean that Cask will be able to infer versions of self-updating casks? That would be awesome! Either way, I happy to leave this for now and revisit in a few weeks.

@alebcay
Copy link
Member

alebcay commented Sep 4, 2014

@Anvar It's technically possible (and it wouldn't be a Cask-specific sort of thing). Versions are labeled in a rather clear and well-standardized format within Mac app bundles, unlike apps in Windows (.exe) and Linux (miscellaneous binary formats).

@rolandwalker
Copy link
Contributor

@Anvar yes, although there are three different version numbers

  • the version number in the Cask when you installed
  • the version number in the latest Cask definition
  • the version number in the app (which may have changed because of self-update)

We have been taking about reading version numbers from the app bundle since #260, but now it is the subject of active work, especially wrt self-updating apps: #3105, #4847, #4412, and many more.

We are also changing the spelling of the link stanza to app, in part to indicate that we will apply new semantics to an app stanza such as extracting the version number from Info.plist inside the bundle. (#4845, #4688).

It will be a while until all these changes come to fruition in the interface, but we are reorganizing the code and Casks to support these features.

@coder17934
Copy link
Contributor Author

That sounds great, thanks for the update!

@rolandwalker rolandwalker mentioned this pull request Nov 29, 2014
@radeksimko radeksimko added the core Issue with Homebrew itself rather than with a specific cask. label Feb 14, 2015
@vitorgalvao
Copy link
Member

Future planned features would render this useless, so closing.

@vitorgalvao vitorgalvao closed this Aug 2, 2015
@miccal miccal removed the core Issue with Homebrew itself rather than with a specific cask. label Dec 23, 2016
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants