-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
DAG Import/Export #7011
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
Closed
Closed
DAG Import/Export #7011
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
aa50194
Dag import/export for final review: full sharness battery coming Sat.
ribasushi 1997ac9
Update core/commands/dag/dag.go
ribasushi 55d1413
Errors are not serialized to JSON - use strings
ribasushi fccbd8f
Do not listen to nonexistent timers when progress disabled
ribasushi 1a2cf9f
Only allow progress on the CLI
ribasushi 0fe70a6
Stop variable/type shadowing
ribasushi 7b48943
Clarify iterator file closures
ribasushi ae2d4f7
switch channel to context
willscott aa85f2e
Properly exit with an error if some pins fail
ribasushi de52029
Streamline progress/silence/tty defaulting
ribasushi 67642d8
Fix importer progress display:
ribasushi 3d9ed1a
Fix exporter progress display
ribasushi b613246
Temporarily back out use of go-ipld-prime
ribasushi 752073b
Initial 'happy path' sharness test
ribasushi 0dae3a2
Augment tests to show pinning/gc troubles
ribasushi 03fe9bd
Merge remote-tracking branch 'origin/master' into feat/carfile-support
ribasushi e8540c6
Forgotten backed out piece from go-ipld-prime codepath
ribasushi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -303,7 +303,11 @@ pin each individual root specified in the car headers, before GC runs again. | |
| cmds.BoolOption(pinRootsOptionName, "Pin optional roots listed in the .car headers after importing.").WithDefault(true), | ||
| }, | ||
| PreRun: func(req *cmds.Request, env cmds.Environment) error { | ||
| if silent, _ := req.Options[silentOptionName].(bool); silent { | ||
| silent, _ := req.Options[silentOptionName].(bool) | ||
| encType, _ := req.Options[cmds.EncLong].(string) | ||
|
|
||
| // force-disable progress unless on non-silent CLI | ||
| if silent || encType != "text" { | ||
| req.Options[progressOptionName] = false | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I ask for progress but set the encoding type to |
||
| } | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.