Skip to content

--raw-leaves leads to base32 and base58 mixed outputs #6343

@hsanjuan

Description

@hsanjuan

Version information: master

Description:

Probably --raw-leaves should not return base32 cids if the user did not select them. What I'm more worried about is that some outputs (adding with wrapping folders, refs -r...) may contain V0 cids with base58 and V1 cids with base32 all mixed regardless of user choice which is bad UI.

$ ipfs add --raw-leaves -Q bigfile.bin 
QmQnNC6QxkAuzAU8pejigkzNxUVGV9W8VvG6qKN1jh8i8M
$ ipfs add --raw-leaves -Q smallfile.bin  
bafkreigga22iwqldlydhd2bui4dbfowa3jjhdnrocvetm254k3blegqz5a

Feel free to close if this is not actionable (should auto-fix whenever we switch to V1 cids by default). Just wanted to bring it up and --raw-leaves are experimental anyways. Fixing this is probably just going to add more boilerplate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions