Skip to content
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

Allow (un-)pinning of ipns resources. #222

Closed
donothesitate opened this issue Mar 21, 2017 · 3 comments
Closed

Allow (un-)pinning of ipns resources. #222

donothesitate opened this issue Mar 21, 2017 · 3 comments
Labels
kind/enhancement A net-new feature or improvement to an existing feature

Comments

@donothesitate
Copy link

Allow (un-)pinning of ipns resources via the icon in the same way as ipfs resources.

@lidel lidel added kind/enhancement A net-new feature or improvement to an existing feature UX labels Mar 21, 2017
@lidel
Copy link
Member

lidel commented Mar 25, 2017

Thank you for reporting this.

It seems to be possible to pin "current snapshot" of IPNS address via commandline:

> ipfs pin add --progress /ipns/ipfs.git.sexy
Fetched/Processed 12 nodes
pinned Qmazvovg6Sic3m9igZMKoAPjkiVZsvbWWc8ZvgjjK1qMss recursively

Unpinning is bit tricky, as it does not work for IPNS paths:

> ipfs pin rm /ipns/ipfs.git.sexy
Error: invalid 'ipfs ref' path

It needs to be unpinned by referring to immutable multihash:

> ipfs pin rm Qmazvovg6Sic3m9igZMKoAPjkiVZsvbWWc8ZvgjjK1qMss
unpinned Qmazvovg6Sic3m9igZMKoAPjkiVZsvbWWc8ZvgjjK1qMss

That being said, it seems to be doable – it just requires one additional lookup.
I'll look into this.

@lidel lidel closed this as completed in 0e6418b Mar 25, 2017
@lidel
Copy link
Member

lidel commented Mar 25, 2017

Done. This feature will be present in v2.0.0alpha3.

@lidel
Copy link
Member

lidel commented Mar 30, 2017

v2.0.0alpha3 is ready for install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A net-new feature or improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants