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

hostedtoolcache directory and environment variables for it #659

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

ivaradi
Copy link
Contributor

@ivaradi ivaradi commented Aug 27, 2024

The clang-tidy check on the desktop client repository (and possible others) fails because the Python venv creation command does not find the libpython shared library.

The reason is that LD_LIBRARY_PATH is not set to the lib subdirectory of the Python installation and that Python is not installed under /opt/hostedtoolcache. LD_LIBRARY_PATH cannot be set, because the venv creation command is in the platisd/clang-tidy-pr-comments action, so Python should be installed under /opt/hostedtoolcache.

This can be achieved by setting the AGENT_TOOLSDIRECTORY and/or the RUNNER_TOOL_CACHE environment variables to this path in the continuous-integration-client-qt6 image (used to run the clang-tidy check), which is what this patch does.

@mgallien
Copy link
Contributor

thanks @ivaradi
sorry for the delay

Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
@mgallien mgallien merged commit ba2245a into master Sep 23, 2024
5 checks passed
@mgallien mgallien deleted the hostedtoolcache branch September 23, 2024 09:36
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.

2 participants