Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Force option to init not respected #515

Closed
interfect opened this issue Oct 12, 2016 · 2 comments
Closed

Force option to init not respected #515

interfect opened this issue Oct 12, 2016 · 2 comments
Labels
exp/novice Someone with a little familiarity can pick up help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws)

Comments

@interfect
Copy link

I'm passing {force: true} in the options for the init method on the IPFS class, and it's still complaining that the repo already exists.

It looks like the force option isn't actually checked despite it being passed in from the front end when -f is specified. So there's no way to clobber an existing repo.

@daviddias daviddias added js-ipfs-backlog kind/bug A bug in existing code (including security flaws) help wanted Seeking public contribution on this issue labels Oct 30, 2016
@daviddias daviddias added exp/novice Someone with a little familiarity can pick up status/deferred Conscious decision to pause or backlog and removed js-ipfs-backlog labels Dec 2, 2016
@daviddias
Copy link
Member

An update on this: We long removed the option for 'force init' in go-ipfs and with that, we also removed it from js-ipfs, we should take it out from documentation/examples.

However, I do understand that cleaning a repo in the browser is painful, far from just rm -rf, which makes me think that there should be a repo-clean utility.

@daviddias daviddias added status/ready Ready to be worked and removed status/deferred Conscious decision to pause or backlog labels Dec 8, 2016
@daviddias daviddias added status/deferred Conscious decision to pause or backlog and removed status/ready Ready to be worked labels Jan 29, 2017
@daviddias
Copy link
Member

I've removed this from everywhere, as this is not really an option anymore. Apologies for the confusion!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
exp/novice Someone with a little familiarity can pick up help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

No branches or pull requests

2 participants