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

Extend hermit info to display all version information #308

Open
alecthomas opened this issue Sep 1, 2022 · 7 comments
Open

Extend hermit info to display all version information #308

alecthomas opened this issue Sep 1, 2022 · 7 comments
Labels
good first issue Good for newcomers

Comments

@alecthomas
Copy link
Collaborator

alecthomas commented Sep 1, 2022

It currently only displays either the current version, or the version that would be installed.

@alecthomas alecthomas added the good first issue Good for newcomers label Sep 1, 2022
@usrme
Copy link

usrme commented Dec 4, 2022

I was thinking of creating an issue about having the installed version shown for hermit list and hermit status as well, but I'll ask here first: what do you think, @alecthomas?

I've installed most packages using <package name>@latest and when doing either of the aforementioned commands I have no insight into what is the version that is actually installed without doing hermit info and looking at the "Source" row. I'd be more than happy to take this on myself, but would want to clarify the expected output in all cases.

Maybe for hermit info it could be, for example:

 Channel: latest
 Description: Terraform is an open-source infrastructure as code software tool...
 Homepage: 
-State: installed
+State: installed: 1.3.6
 Source: https://releases.hashicorp.com/terraform/1.3.6/terraform_1.3.6_linux_amd64.zip
 Root: /home/usrme/.cache/hermit/pkg/terraform@latest
 Binaries: terraform

For hermit list it could be:

-terraform (@latest)
+terraform (@latest: 1.3.6)
   Terraform is an open-source infrastructure as code software tool...

For hermit status it could be:

 Packages:
-  terraform@latest
+  terraform@latest:1.3.6

@usrme
Copy link

usrme commented Aug 15, 2023

Mentioning you again, @alecthomas, in the hopes of finding out what you think about the above. I'm still very much interested in tackling this.

@alecthomas
Copy link
Collaborator Author

When I do hermit info I get this:

🐚 ~/dev/ftl $ hermit info go
Name: go
Version: 1.21.0
...

Is that not what you want?

@alecthomas
Copy link
Collaborator Author

Oh you're talking specifically about channels!?

Yeah that would be useful info agreed.

@usrme
Copy link

usrme commented Aug 18, 2023

Maybe you could talk a bit more in-depth about what you meant in the original issue, we clearly deviated in our understanding of things and can maybe converge 😄

@alecthomas
Copy link
Collaborator Author

I think the original intent was that hermit info should show all available versions, in addition to just the current or latest. But showing the underlying version of a channel would be useful too.

@usrme
Copy link

usrme commented Aug 22, 2023

By all available versions you mean the versions that could be installed, i.e. the same set of versions as discovered by hermit search? 🤔 I think this would mean that hermit info would take more time to execute to grab the same information as hermit search.

Or is there a way to query locally installed versions and list those, i.e. those which could be installed directly from cache?

spicykay pushed a commit to spicykay/hermit that referenced this issue Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants