-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Add "force" option to conan remote remove #17578
Comments
Hi @Nekto89 Thanks for your suggestion.
I am quite surprised that the The new proposed |
Pipeline can be cancelled at any point of time so there is definitely can be some "bad timing" if changes in this remotes.json aren't transactional.
|
There is a single
Sounds perfect, then I am marking this ticket to be closed by the PR, if the |
Just an idea. Make save to new temporary file and use os.replace. Documentation states that it's an atomic operation. |
That is a good idea, many thanks. It might need to be applied to different save operations, at least those that save files on the cache (I wouldn't apply it to all save operations of files in user space). I'll suggest it for remotes.json saving and discuss with the team. |
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:
As a workaround I've added additional
del /f/s/q "%CONAN_HOME%\remotes.json"
right afterconan remote remove "*"
but I don't really like it. Is it possible to add additional option--force (-f)
that will completely removeremotes.json
even if it's unreadable JSON? And maybe create new one with zero remotes.Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: