fsprojects / fsprojects/Paket

Git Hangs On Invalid/Unreachable Host [Enhancement]

Open
#3,731 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

Description

Paket version 5.227.0

When the paket.dependencies file has a host that resolves but is unreachable on port 22, paket install seems to wait forever to connect.

Repro steps

$ paket init && echo git git@unreachable.host:test/this.git >> paket.dependencies && paket install

Expected behavior

While the underlying behaviour of git is probably to blame here, sub commands should probably have a timeout. It would be useful to see something in verbose mode such as 'Failure to connect to XXYY, retrying (1/5)'

Actual behavior
$ paket install -v
Paket version 5.227.0
found: /tmp/repro/paket.dependencies
Parsing /tmp/repro/paket.dependencies

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the hang with paket init and the unreachable Git host from the issue, then trace the paket install -v command and its Git subprocess handling. Done means an unreachable host no longer waits indefinitely and verbose output reports connection failures and retries as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp, git
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.