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

commands/add: return an error when using --only-hash and --to-files #10182

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

MichaelMure
Copy link
Contributor

In that situation, the data is not written to permanent storage, so a reference in MFS would be to p2p blocks at best.

The /add command in that situation is also likely to hang as it reads immediately the root node without being able to get it (it falls back to bitswap).

@MichaelMure MichaelMure requested a review from a team as a code owner October 19, 2023 14:04
@BigLep BigLep mentioned this pull request Nov 9, 2023
11 tasks
In that situation, the data is not written to permanent storage, so a reference in MFS would be to p2p blocks at best.

The /add command in that situation is also likely to hang as it reads immediately the root node without being able to get it (it falls back to bitswap).
@hacdias hacdias added the skip/changelog This change does NOT require a changelog entry label Feb 8, 2024
@hacdias
Copy link
Member

hacdias commented Feb 8, 2024

Thanks for this - and sorry it stayed without review for so long. It's a small change, but improves UX for users.

@hacdias hacdias enabled auto-merge (rebase) February 8, 2024 16:32
@hacdias hacdias merged commit eb7f663 into ipfs:master Feb 8, 2024
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip/changelog This change does NOT require a changelog entry
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants