← Back to issue list

pulling repository can hang execution indefinitely

View original Github issue

Metadata

Project
craft-parts
Number
#933
Type
issue
State
open
Author
dariuszd21
Labels
Created
2024-12-12 15:41:59+00:00
Updated
2025-03-11 14:28:27+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description During pull phase if repository is private or does not exist, craft will hung forever waiting for the credentials. It should immediately fail as there is no place for user to put the credentials in ### To Reproduce Build the source that requests you to use credentials (e.g. source from GitHub or Launchpad via `https://` that is not public or does not exist). ### part yaml ```yaml non-existing-part: # See 'snapcraft plugins' source: https://github.com/non-existing-user/non-existing-repo source-type: git plugin: nil ``` ### Relevant log output ``` 2024-12-12 10:37:22.198 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)) │ 2024-12-12 10:37:22.199 Executing: git clone --recursive https://github.com/non-existing-user/non-existing-repo │ 2024-12-12 10:37:22.201 :: Cloning into '/root/parts/my-part/src'... ```

Evaluation history

No evaluation history available.