-
Notifications
You must be signed in to change notification settings - Fork 23
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
Switch 3rdparty directory to only download files if YCM_DOWNLOAD_3RDPARTY is set to ON #402
Conversation
@PeterBowman any opinion on this? Asking as you commented in the related issue in #105 (comment) . |
I think I've not seen that error (GitLab was down and UseLatex.cmake could not be downloaded) in a long time, but this is great as it shields us against similar issues in the future. |
Example of problem avoided after this PR (from https://github.com/robotology/gazebo-yarp-plugins/runs/7275245883):
|
In this specific case, https://invent.kde.org/frameworks/extra-cmake-modules/-/raw/v5.79.0/find-modules/FindUDev.cmake is marked as 403, but all other files are accessible (see for example https://invent.kde.org/frameworks/extra-cmake-modules/-/raw/v5.80.0/find-modules/FindUDev.cmake). I wonder if YCM (and its use in CI systems) played a role in the reason why that URL is now not accessible. I guess that anyhow we should not risk these problems anymore after this PR. |
If
YCM_DOWNLOAD_3RDPARTY
is set toOFF
, the already downloaded files committed in the repo are used instead.The main goal of this is to shift the burden of downloading new 3rdparty files from the users to the mantainer, that once in a while will need to update the files and run the build with
YCM_DOWNLOAD_3RDPARTY
option enabled. This should reduce the time necessary to install YCM from source, including when YCM is used for bootstrap. Furtermore, it reduces the possibility that the YCM build fails, as even ifgitlab.org
,gitlab.kitware.com
orinvent.kde.org
are down, the YCM build will successed anyhow.This should also have the side effect of speeding up the build of YCM.
Fix #105 .