Conan v2 Configuration

OSA Proxy implementation

This page describes the current OSA Proxy implementation and Conan API v2.

conan:
  enabled: true
  repository:
    - name: codescoring-conan
      registry: https://center2.conan.io
      scan-manifest: true
      scan-package: true
    - name: arti-conan
      registry: https://artifactory.example.com/artifactory/api/conan/conan-proxy
      scan-manifest: true
      scan-package: true

Add OSA Proxy as a Conan remote:

conan remote add codescoring \
  https://osa-proxy.example.com/codescoring-conan \
  --index 0
conan remote list

--index 0 places OSA Proxy first in the lookup order. Without this option, Conan appends the new remote to the list and may find a package in the default conancenter before it contacts OSA Proxy.

If all ConanCenter access must go through OSA Proxy, disable the direct remote:

conan remote disable conancenter

If the codescoring remote already exists, update its URL and priority instead of adding it again:

conan remote update codescoring \
  --url https://osa-proxy.example.com/codescoring-conan \
  --index 0

OSA Proxy checks Conan v2 version lists and downloaded packages. Blocked versions are removed from results; Conan does not use remove-blocked-versions.

Was this page helpful?