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

[vcpkg upgrade] Give vcpkg list output format which will be suitable for vcpkg install command. #2663

Closed
pravic opened this issue Jan 27, 2018 · 10 comments
Labels
category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed

Comments

@pravic
Copy link
Contributor

pravic commented Jan 27, 2018

Without doubt vcpkg upgrade is a great step forward, but we have sort of inconvenience now if upgrade fails for some reason. In that case we end up with uninstalled old libraries and partly installed the new ones.

Although vcpkg upgrade tells what it is going to update, but that list is not convenient to use for retry. I wish there was an additional output of the upgrade command, which would tell you how to properly continue or retry upgrade (basically a ready-to-copy list of libraries which can be pasted as an input for install).

Or, may be, upgrading should be atomic in ideal world.

@ras0219-msft:

We did previously have this list as the final output of the vcpkg update command; it was something of the form "vcpkg install openssl:x64-windows openssl:x64-window-static boost:x64-window-static boost:x64-windows .........".

That would be useful indeed. Or some way to tell vcpkg list to print installed libraries in a suitable way for vcpkg install would be better? So in this case I'd just backup installed libraries. And it's nice to share your list of libraries to your colleagues or to move it between your computers.

Ideas are welcome!

@rexdf
Copy link

rexdf commented Jan 28, 2018

How about a .retry to keep the list ? And a command --skip-failed to skip some failed pkgs and their dependencies.

@horenmar
Copy link
Contributor

horenmar commented Feb 1, 2018

I think vcpkg should copy pip a bit, so that something like pip freeze > requirements.txt and pip install -r requirements.txt is possible.

@JackBoosY JackBoosY added the category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed label Feb 27, 2019
@NancyLi1013
Copy link
Contributor

This issue hasn’t been updated in a year; if it is still an issue, please reopen.

@horenmar
Copy link
Contributor

What is there to update? Does vcpkg support usage similar to pip freeze and install from file? If yes, close the issue as implemented. If not, the feature is still unimplemented.

@pravic
Copy link
Contributor Author

pravic commented May 26, 2020

if it is still an issue, please reopen.

It is an issue. Why close?

@NancyLi1013 NancyLi1013 reopened this May 27, 2020
@BillyONeal
Copy link
Member

@pravic Because there are a lot of bogus stale issues, closing them is a means of poking to see if the issue was valid and/or people still care.

@pravic
Copy link
Contributor Author

pravic commented Jun 9, 2020

If it's a bogus issue, why bother at all? Close immediately and mark as invalid or wontfix.

@BillyONeal
Copy link
Member

@pravic It was a bulk operation, not a targeted one.

@PhoebeHui
Copy link
Contributor

Related to #17787

@PhoebeHui PhoebeHui changed the title Give vcpkg list output format which will be suitable for vcpkg install command. [vcpkg upgrade] Give vcpkg list output format which will be suitable for vcpkg install command. May 11, 2021
@PhoebeHui
Copy link
Contributor

Closing in favor of #17922 and #17787.

2 features request here:

  1. vcpkg upgrade: if one of the packages fails, it should be continue or retry upgrade. Duplicated to [vcpkg upgrade] change behavior of vcpkg upgrade --no-dry-run #17922
  2. vcpkg list: Print installed libraries in a suitable way for vcpkg install. Duplicated to Feature request: export list. #17787

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed
Projects
None yet
Development

No branches or pull requests

7 participants