← Back to issue list

Craft parts should close stdin when cloning git projects

View original Github issue

Metadata

Project
craft-parts
Number
#899
Type
issue
State
open
Author
mr-cal
Labels
Created
2024-11-07 19:04:48+00:00
Updated
2025-03-11 14:28:46+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done 1. Similar to `apt` calls ([source](https://github.com/canonical/craft-parts/blob/2559930585682ceec00fccb150d508e95918b7f4/craft_parts/packages/deb.py#L611)), craft-parts should close stdin when cloning git repos. 2. If a repo requires credentials, craft-parts should raise a user-friendly error both locally and in CI (`snapcraft remote-build` is a good test). ### Why it needs to get done If a git repo requires credentials, craft-parts does not prevent block stdin. This produces unhelpful errors. source: https://chat.canonical.com/canonical/pl/wdbbgdpiupdymyzgfwiuys8cge

Evaluation history

No evaluation history available.