Open Taha-cmd opened 9 months ago
You can create a new folder newdir
in the vcpkg/port
directory, and then copy your project's vcpkg.json
to the new folder. Then run the following command to get all dependencies.
./vcpkg depend-info newdir --format=tree
That worked indeed. However, this is not really appropriate for automated build processes and pipelines scenario, as it would require modifying the vcpkg installation directory.
That worked indeed. However, this is not really appropriate for automated build processes and pipelines scenario, as it would require modifying the vcpkg installation directory.
Yes, this is just a temporary solution, I will try to modify to read the vcpkg.json file directly to show the dependencies.
As a mitigation, you can try vcpkg install --dry-run
.
I'll note two things here
vcpkg depend-info my-app --overlay-ports=.
Any progress on this? I would also be interested in this functionality
+1. This is very useful and I hope it is implemented. It makes no sense that depend-info
works for packages but not for the top-level vcpkg.json
; the logic is already present and it is a matter of wiring together the appropriate command-line.
Currently the only way to install a specific package version is via manifest mode. There is no way to define a package version on the classic command line install. There is none for depend-info either. To to see the dependencies of a specific package version, would be nice if depend-info either works with the manifest file or if there was a way to specify the package version on the command line.
@BillyONeal Can vcpkg query dependent packages in manifest mode?
To to see the dependencies of a specific package version, would be nice if depend-info either works with the manifest file
What works is https://github.com/microsoft/vcpkg/issues/36520#issuecomment-1930449009.
Use the command vcpkg install --dry-run
to achieve the results you need. I will close this issue. If you have new issue, please submit a new issue.
Please reopen.
vcpkg install --dry-run does NOT permit to have parent/children relationship. This feature is needed. All good package manager permit to do this.
Is your feature request related to a problem? Please describe.
I want to query the dependency graph for an entire project. The current
depend-info
command only works in classic mode, in which the dependencies are shown for only one port. To query the dependencies for an entire project, one would have to parse thevcpkg.json
manifest and calldepend-info
for each port.Proposed solution
Provide an (explicit or implicit) manifest mode for the
depend-info
command. Examples:vcpkg depend-info
<- search for vcpkg.json in current directoryvcpkg depend-info vcpkg.json
Describe alternatives you've considered
No response
Additional context
No response