Open chevdor opened 3 years ago
Ideally, we wouldn't require the repo in this case.
Unfortunately, we open the repo long before we process these flags so fixing this is far from trivial and probably won't happen any time soon.
Is file hash/ipfs url depends on repo?
Version information:
Description:
When adding a file using
-n
(--only-hash
), there should not be the need to initialize the IPFS repo. Currently, if you install ipfs but don't runipfs init
(or cleanup usingrm -rf ~/.ipfs
),ipfs add -n FILE
will fail with:So it is correct that no IPFS repo can be found but that should not be required to only hash.