Not clear what "raw" means in various CLI flags relating to format, or how to get those behaviors
- Dominant language
- Go
- Stars
- 17.1k
- Forks
- 3.2k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 11
Description
(I'm going to be transcribing a bunch of notes from slack and other places, mostly as quotes. The result will not be organized. You're dealing with it the same way I'm stuck dealing with it, reader. Enjoy.)
Original description: "Bug where can only get raw bytes using the git codec but not round trip it. It should not do the first or also do the second."
---
Some example behavior that seems confusing:
```
❯ echo '{"foo" : 5}' | ipfs dag put --input-enc=raw
bafyreigg3nfoc7bnomgpdmziymlhhy3tgsistf2s36js2nwsfrumtjirba
🏠/workspace
❯ ipfs dag get --format=git-raw bafyreigg3nfoc7bnomgpdmziymlhhy3tgsistf2s36js2nwsfrumtjirba
{"foo" : 5}
🏠/workspace took 5s
❯ echo '{"foo" : 5}' | ipfs dag put --input-enc=git-raw
Error: unrecognized object type: {"foo"
```
---
There is a long internal slack thread about this: https://protocollabs.slack.com/archives/C01MFLTLKTP/p1629207570249300 That link will require login and will also break someday. ┐_(ツ)_┌
Contributor guide
Assessment
This issue has not been assessed yet.