Skip to content

[feature] Add "force" option to conan remote remove #17578

@Nekto89

Description

@Nekto89

What is your suggestion?

Hi,

I just had issue with corrupted remotes.json again. After #16089 I'm getting pretty error message but it still requires manual intervention or additional non-conan actions.

I'm only using these commands for working with remotes:

conan remote remove "*"
conan remote add remotename https://.../api/conan/...
conan remote login -p password remotename username

As a workaround I've added additional del /f/s/q "%CONAN_HOME%\remotes.json" right after conan remote remove "*" but I don't really like it. Is it possible to add additional option --force (-f) that will completely remove remotes.json even if it's unreadable JSON? And maybe create new one with zero remotes.

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions