question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to simple install dependencies as before

See original GitHub issue

Here is what I trying:

      - name: Install vcpkg packages
        uses: lukka/run-vcpkg@v10
        with:
          runVcpkgInstall: true
          runVcpkgFormatString: '[`install`, `--clean-after-build`, `--x-install-root`, `$[env.VCPKG_INSTALLED_DIR]`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`, `tesseract[cpu-independed]`, `ecm`, `qt5-svg`, `qt5-multimedia`, `qt5-winextras`, `qt5-tools`]'
          vcpkgGitCommitId: 5568f110b509a9fd90711978a7cb76bae75bb092

Here is the error I get:

run-vcpkg action execution failed: Cannot run 'install,--clean-after-build,--x-install-root,D:/a/crow-translate/b/vcpkg_installed,--triplet,x64-windows,tesseract[cpu-independed],ecm,qt5-svg,qt5-multimedia,qt5-winextras,qt5-tools' because no valid directory has been provided.

I would expect to have a workflow as with v7.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Shaturcommented, Oct 21, 2021

It looks less meaningful when used to describe the dependencies of an application (i.e. the final consumer).

Even worse, the cache becomes invalid on every version bump. I really don’t understand why name and version exists. I started using latest for the version.

1reaction
lukkacommented, Oct 19, 2021

My suggestion is to move the dependencies from the workflow file into a newly created vcpkg.json under source control.

Thanks, will try to migrate. I have a question. Why does my application name and version have to be duplicated in vcpkg.json? I have already specified this in CMakeLists.txt. How does vcpkg use it?

This is indeed something I have not a good answer nor a strong opinion. The name and version fields should be required when the vcpkg.json is describing the dependencies of a package, i.e. it is describing the attributes of a package. It looks less meaningful when used to describe the dependencies of an application (i.e. the final consumer).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix “Failed to Install a Dependency” on Kodi
In this troubleshooting guide, we will learn to fix the “Failed to install a dependency” error message on Kodi 18.9.
Read more >
How to fix “Failed to install a dependency” error In Kodi
You can do this by uninstalling Kodi, then visiting https://kodi.tv/download and choosing the right version for your operating system.
Read more >
apt - How do I resolve unmet dependencies after adding a PPA?
It's important to try making sure your package lists are up to date first; always make sure a simple update or clearing of...
Read more >
Fix: Couldn't install dependency error | Valorant Guide
... but receiving an error about needing to contact support to fix a dependency error? ... Your browser can't play this video.
Read more >
How to Install and Correct Dependencies Issues in Ubuntu
Almost every Ubuntu user has seen the error "The following packages have unmet dependencies issues". In this circumstance, the failure almost ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found