We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 099ce9c commit 62c5573Copy full SHA for 62c5573
core/commands/add.go
@@ -226,6 +226,11 @@ See 'dag export' and 'dag import' for more information.
226
hashFunStr = cfg.Import.HashFunction.WithDefault(config.DefaultHashFunction)
227
}
228
229
+ // Check if --raw-leaves and --cid-version=0 are set together before checking Config.Import
230
+ if rbset && rawblks && cidVerSet && cidVer == 0 {
231
+ return errors.New("unixfs raw leaves require cid version 1")
232
+ }
233
+
234
if !cidVerSet && !cfg.Import.CidVersion.IsDefault() {
235
cidVerSet = true
236
cidVer = int(cfg.Import.CidVersion.WithDefault(config.DefaultCidVersion))
0 commit comments