Skip to content

Fix conan install and info with range without username and channel

  • 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. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.

What does this MR do and why?

Extra fix for issue #287819. In last fix !161782 (merged) for this issue, we refactor some code to fix the issue, but a use case has been missed: test when no username and channel are given. This MR fix the _conan install/info _command with range without username and channel.

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.

How to set up and validate locally

Supposing you have a conan remote called "gitlab-local" pointing to your local gitlab project. If not you set it up following the documentations: https://docs.gitlab.com/ee/user/packages/conan_repository/#add-a-remote-for-your-project

Create a new conan package

newPackageIssue167888

  • mkdir newPackageIssue167888pkg && cd newPackageIssue167888pkg
  • conan new newPackageIssue167888/1.2.3@gitlab-org+conan/stable --template=cmake_lib
  • conan create . gitlab-org+conan/stable

Get info on the package

  • conan info newPackageIssue167888/[~1.2.3]@ -r gitlab-local

You should get info on the package

Related to #287819

CC @ScanianJP

Edited by Océane Legrand

Merge request reports

Loading