Skip to content

Conversation

gammazero
Copy link
Contributor

Do not close the stream prematurely in a deferred function. Also, avoid possible shadowing errors.

Closes #9007

Do not close the stream prematurely in a deferred function. Also, avoid possible shadowing errors.

Closes #9007
@gammazero gammazero requested a review from a team as a code owner August 8, 2025 17:17
@lidel lidel self-assigned this Aug 8, 2025
@gammazero gammazero added the skip/changelog This change does NOT require a changelog entry label Aug 8, 2025
@gammazero gammazero requested a review from lidel August 8, 2025 17:46
lidel added 3 commits August 9, 2025 00:48
includes regression tests for #9007
and better coverage than the old test/sharness/t0290-cid.sh

(identified bug in basemoji)
changed the character display logic from ASCII range check to
unicode.IsPrint() to properly handle Unicode characters including
emojis.
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this + #10897 make ipfs cid pretty useful for scripting/CI, I've added it as a highlight in changelog.

As part of moving away from sharness, I've added regression tests to test/cli + fixed small bug in ipfs cid bases --prefix where unicode 🚀 was not printed correctly.

@lidel lidel changed the title Fix command stream result handling fix(cmd): exit 1 on error Aug 9, 2025
@gammazero gammazero merged commit d4ab512 into master Aug 9, 2025
17 checks passed
@gammazero gammazero deleted the fix-cmds-stream-result branch August 9, 2025 00:25
@lidel lidel mentioned this pull request Aug 8, 2025
51 tasks
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
None yet
Development

Successfully merging this pull request may close these issues.

CID command error handling is incorrect
2 participants