mirror of
https://gitea.com/gitea/docs.git
synced 2026-06-11 12:41:27 +00:00
docs: update conan login command for conan v2 (#426)
Conan v1 reached end-of-life. https://blog.conan.io/2024/09/30/Conan-Center-will-stop-receiving-updates-for-Conan-1.html The command for conan v2 login has changed to `conan remote login`. https://docs.conan.io/2/reference/commands/remote.html#conan-remote-login I briefly looked at Gitea codebase. Gitea supports conan v2 cli (given functions like `DeleteRecipeV2` and `SearchPackagesV2`) --------- Co-authored-by: Chongyi Zheng <git@zcy.dev> Reviewed-on: https://gitea.com/gitea/docs/pulls/426 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: harryzcy <37645+harryzcy@noreply.gitea.com> Co-committed-by: harryzcy <37645+harryzcy@noreply.gitea.com>
This commit is contained in:
@@ -18,7 +18,7 @@ To register the package registry you need to configure a new Conan remote:
|
||||
|
||||
```shell
|
||||
conan remote add {remote} https://gitea.example.com/api/packages/{owner}/conan
|
||||
conan user --remote {remote} --password {password} {username}
|
||||
conan remote login {remote} {username} --password {password}
|
||||
```
|
||||
|
||||
| Parameter | Description |
|
||||
@@ -32,7 +32,7 @@ For example:
|
||||
|
||||
```shell
|
||||
conan remote add gitea https://gitea.example.com/api/packages/testuser/conan
|
||||
conan user --remote gitea --password password123 testuser
|
||||
conan remote login gitea testuser --password password123
|
||||
```
|
||||
|
||||
## Publish a package
|
||||
|
||||
Reference in New Issue
Block a user