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

How do I get history versions of a port now #27451

Closed
FAKERINHEART opened this issue Oct 25, 2022 · 8 comments
Closed

How do I get history versions of a port now #27451

FAKERINHEART opened this issue Oct 25, 2022 · 8 comments
Assignees
Labels
category:question This issue is a question

Comments

@FAKERINHEART
Copy link

Please create a discussion in https://github.com/microsoft/vcpkg/discussions/new instead.

In old versions, I can use x-history to get history version list of a port.
Now I find that this subcommand has been removed.
Thus, How can I get history of a port right now?

@FAKERINHEART FAKERINHEART changed the title How do I get history of a port now How do I get history versions of a port now Oct 25, 2022
@MonicaLiu0311 MonicaLiu0311 added the category:question This issue is a question label Oct 25, 2022
@MonicaLiu0311
Copy link
Contributor

There's already a discussion about installing a fixed version, see if you're satisfied:
#25622

I have a method that is not very nice but can achieve the same(You can go to the version folder to see the corresponding .json file):
...\vcpkg\versions\s-\sqlite3.json

@FAKERINHEART
Copy link
Author

@MonicaLiu0311
I suggest that x-history(or other substitutes) be back in new versions.

@MonicaLiu0311
Copy link
Contributor

@FAKERINHEART
There is a git command that completely replaces it:
git blame -l versions/<port-first-char>-/<portname>.json

Display list explanation:
commitID fileName authorName date lineNumber lineContents

@MonicaLiu0311
Copy link
Contributor

MonicaLiu0311 commented Oct 26, 2022

The PR and rationale for removing this command are as follows:
microsoft/vcpkg-tool#689

If you have a very important reason to restore the x-history command, please provide concrete customer use case at microsoft/vcpkg-tool#689, thanks.

@FAKERINHEART
Copy link
Author

@FAKERINHEART There is a git command that completely replaces it: git blame -l versions/<port-first-char>-/<portname>.json

Display list explanation: commitID fileName authorName date lineNumber lineContents

Yes, I use this command instead, however, it is not convenient for me and other common users who want to control all versions in vcpkg.json witch overrides.

@MonicaLiu0311
Copy link
Contributor

it is not convenient for me and other common users who want to control all versions in vcpkg.json witch overrides.

I checked and found that this git command contains all the information that x-history can display. What is it that makes you feel inconvenient, can you explain it in detail?

@FAKERINHEART
Copy link
Author

FAKERINHEART commented Oct 27, 2022

it is not convenient for me and other common users who want to control all versions in vcpkg.json witch overrides.

I checked and found that this git command contains all the information that x-history can display. What is it that makes you feel inconvenient, can you explain it in detail?

CAN USE is NOT equal USE CONVENIENTLY.

git blame -l versions/<port-first-char>-/<portname>.json VS ./vcpkg x-history portname

Which is simple and convenient for users?
Why should users be care of how to press complicated git command keys to get the same effect of x-history which can be found in ./vcpkg --help easily?

@MonicaLiu0311
Copy link
Contributor

Ok, thanks for the detailed instructions, I'll report back on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants