Conan search: Add support for finding package by name and version
requested to merge gitlab-community/gitlab:467913-Conan-search--add-support-for-finding-package-by-name-and-version into master
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA
What does this MR do and why?
Add support for finding package by name and version and corresponding unit test.
For more information see issue 467913.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Unit tests:
- bundle exec rspec spec/finders/packages/conan/package_finder_spec.rb
Code itself:
- Create a simple package
- mkdir hellopkg && cd hellopkg
conan new hello/1.2.3@gitlab-org+conan/stable --template=cmake_lib - conan create . gitlab-org+conan/stable
- conan upload hello/1.2.3@gitlab-org+conan/stable -r gitlab-local --all
- mkdir hellopkg && cd hellopkg
- Search for the package
- conan search hello/1.2.3
Related to #467913 (closed)
Edited by Océane Legrand