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

approvaltests.cpp: Make conanfile compatible with mirror urls #26687

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

markuspi
Copy link

Summary

Changes to recipe: approvaltests.cpp

Motivation

Fixes #26683
Passing multiple URLs per file in conandata.yml results in self.conan_data["sources"][version]["url"] being a list instead of a string.
This recipe had hardcoded behavior that assumed the url would always be a string, which breaks when more urls are specified (as is the case in our downstream automation).

Details

Fix the source method to accept either a string, list or tuple as URL. I took inspiration by the implementation of conan.tools.files.get


@CLAassistant
Copy link

CLAassistant commented Feb 25, 2025

CLA assistant check
All committers have signed the CLA.

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.

[package] approvaltests.cpp/10.13.0: conanfile is not compatible with mirror urls
2 participants