-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
cmds/pin: add force option for pin rm #5717
Conversation
License: MIT Signed-off-by: Overbool <[email protected]>
bebc8cf
to
e6ea069
Compare
@overbool could you add a sharness test for this? |
@@ -56,6 +57,10 @@ test_pins() { | |||
cat hashes | ipfs pin rm | |||
' | |||
|
|||
test_expect_success "unpin non-existent hashes with force option" ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make sure things are working right I would do
ipfs pin rm --force <invalid-hash> <valid-hash> <invalid-hash>
License: MIT Signed-off-by: Overbool <[email protected]>
cd99006
to
5c39fa5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should report nonexisting hashes.
As suggested by @kevina I'm fine with making this the default behavior without the flag to mimic block rm
.
@kevina @schomatis Currently, we had implemented the Another question is should we deprecate |
I'm not sure, @magik6k might know more about that, but those issues seem more suited to be handled in another PR to avoid mixing different solutions. |
@magik6k Should we deprecate |
Sorry for the delay. Yep, we can remove |
I'm guessing we want #5843 in first |
Fixes: #5716
License: MIT
Signed-off-by: Overbool [email protected]