canonical / canonical/craft-cli

Broken pipe when trimming lines (head)

Open
#378 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
16
Forks
27
Avg merge
1d 22h
Merged PRs (30d)
10

Description

```
❯ snapcraft revisions snapcraft | head -n1
stead. The old name will be removed in a future release. Rev. Uploaded Arches Version Channels

Exception ignored in: <_io.TextIOWrapper name='' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported `snapcraft revisions snapcraft | head -n1` command and inspect how the CLI writes output and handles a closed stdout pipe. Done means trimming output with `head` no longer emits the ignored `BrokenPipeError` while the command still displays its first line.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.