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

Add missing tool paths to the PATH #256

Merged
merged 2 commits into from
Oct 12, 2024

Conversation

ddalcino
Copy link
Contributor

Fix #255.

This PR fixes the behavior of the add-tools-to-path option for a few tools where it currently does not work. These tools include:

  • Ninja: this tool installs at Tools/Ninja/ninja
  • Conan: this tool installs at Tools/Conan/conan
  • CMake: On MacOS, this tool installs at Tools/CMake/CMake.app, which is not where install-qt-action currently looks for it, parallel to the Tools directory.

This PR also adds tests to check that these tools are installed, executable, and in the PATH when add-tools-to-path is set.

It is still possible that there are other tools somewhere in the Qt repo that aren't being added to the PATH properly; I have not exhaustively searched them. If there are more such tools, it should not be too difficult to modify this code to fix them.

@jurplel jurplel merged commit b412359 into jurplel:master Oct 12, 2024
82 checks passed
@jurplel
Copy link
Owner

jurplel commented Oct 12, 2024

Thank you for the contribution!

@ddalcino ddalcino deleted the topic/ddalcino/fix-tool-paths branch October 12, 2024 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some tools paths haven't added into the PATH
2 participants