Skip to content
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

Errors out with ERROR git_cliff > IO error: Broken pipe (os error 32) when piping #407

Closed
hauleth opened this issue Dec 26, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@hauleth
Copy link

hauleth commented Dec 26, 2023

Describe the bug

Various CLI utilities can force closing previous program in pipeline by closing pipe when they are done. Example of such too is head which will exit (and close pipe) when it reaches requested number of lines. However this causes git-cliff to close abnormally because of the write error.

To reproduce

Run:

$ git cliff | head -n1
# Changelog
 ERROR git_cliff > IO error: `Broken pipe (os error 32)`

Expected behavior

$ git cliff | head -n1
# Changelog

Software information

  • Operating system: Darwin 23.2.0 arm64
  • Rust version: Installed via Nixpkgs, so no idea
  • Project version: 1.4.0
@hauleth hauleth added the bug Something isn't working label Dec 26, 2023
@hauleth hauleth changed the title Errors out with ERROR git_cliff > IO error: Broken pipe (os error 32)` when piping Errors out with ERROR git_cliff > IO error: Broken pipe (os error 32) when piping Dec 26, 2023
@orhun
Copy link
Owner

orhun commented Dec 26, 2023

Hello, thanks for reporting this! 🐻

It is now fixed in bdce4b5

See Misterio77/flavours#16 and rust-lang/rust#46016 for more context.

@orhun orhun closed this as completed Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants