AuHau / ipfs-publish

Continuous Delivery of static websites to IPFS

Home Page:https://ipfs-publish.uhlir.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Publishing stops if it can't remove the previous pin

xuv opened this issue · comments

I've encountered this error in a project of mine that I could not update for months. And where the previous pin had been removed between between two runs of the publishing process.

INFO:publish.publishing:Unpinning hash: /ipfs/<some_previously_pinned_hash_here>/
ERROR:publish.publishing:not pinned or pinned indirectly

In case the publishing script does not manage to remove the previous pin, it will exit.
After checking IPFS documentation on pinning, it seems this can only happen if the pin is not in the local list anymore.

This does not seem to be a big issue and we could probably just ignore this error if it happens and continue the rest of the publishing process.

This is what I've attempted with a patch like you will find here: xuv@6a9825e

Happy to create a PR for it if you find this useful.