← Back to issue list

Snapcraft hangs forever if a GitHub repository doesn't exist

View original Github issue

Metadata

Project
snapcraft
Number
#5661
Type
issue
State
open
Author
vandah
Labels
Status: Triaged Type: Bug
Created
2025-08-01 14:36:04+00:00
Updated
2025-08-12 19:47:40+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description When source for a part is a GitHub repository which doesn't exist or is private and the user doesn't have GitHub credentials saved, snapcraft just hangs on `Pulling <part-name>....`. I tried waiting over an hour and it didn't even timeout. I'm assuming this is happening because `git` itself asks for username and password and waits for user input. ```bash $ git clone --recursive https://github.com/somename/somerepo.git Cloning into 'somerepo'... Username for 'https://github.com': ``` ### To Reproduce - run `snapcraft` ### Environment I'm running Snapcraft 8.10.2 on Ubuntu 24.04 LTS, using Multipass. ### snapcraft.yaml ```yaml name: snapcraft-git-issue base: core24 version: '0.1' summary: Single-line elevator pitch for your amazing snap description: | This is my-snap's description. You have a paragraph or two to tell the most important story about your snap. Keep it under 100 words though, we live in tweetspace and your description wants to look good in the snap store. grade: stable confinement: strict parts: my-part: plugin: dump source: https://github.com/somename/somerepo.git ``` ### Relevant log output ```shell :: 2025-08-01 16:10:05.219 verify plugin environment for part 'my-part' :: 2025-08-01 16:10:05.222 Pulling my-part :: 2025-08-01 16:10:05.224 execute action my-part:Action(part_name='my-part', step=Step.PULL, action_type=ActionType.RUN, reason=None, project_vars=None, properties=ActionProperties(changed_files=None, changed_dirs=None)) :: 2025-08-01 16:10:05.227 Executing: /snap/snapcraft/15369/libexec/snapcraft/craft.git clone --recursive https://github.com/somename/somerepo.git :: 2025-08-01 16:10:05.466 :: Cloning into '/root/parts/my-part/src'... :: 2025-08-01 16:15:57.636 Interrupted. ``` ### Additional context _No response_

Evaluation history

No evaluation history available.