The content of this page has been automatically translated by AI. If you encounter any problems while reading, you can view the corresponding content in Chinese.

Conan

Last updated: 2026-04-03 17:25:50

This document describes how to store Conan artifacts in CODING-AR for centralized artifact management and version control. The following sections introduce how to create an artifact, configure authentication, and pull and push artifacts.
Note:
To read this document, prepare the following:
Install Python3.
Basic Operations—Create a project.
Select Conan as the repository type.

Install Conan

Python 3.5 or later is required to install Conan using pip.
pip3 install conan
Install Conan with brew.
brew install conan

Create a Conan Package

Create a local demo directory.
mkdir mypkg && cd mypkg
Create a demo project.
conan new hello/0.1 -t
Build a binary package for the project.
conan create . demo/testing
If an error occurs /bin/sh: cmake: command not found, you need to run the command to install cmake.
$ pip3 install cmake
# or
$ brew install cmake

Configure Authentication Information

After entering password in the guide, click Generate Personal Token as Credentials to automatically generate and execute the command.




Push an Artifact

Run the command in the guide. Replace the variables with the name and version of the artifact to be pushed.
conan upload [package name]/[custom version number] --all -r=conan-go

Pull an Artifact

Run the pull command from the guide to pull an artifact from the current repository.
conan install <package name>/<custom version number>@ -r conan-go