Skip to content

don't block on git credential prompts during version discovery - #1816

Open
georgelemon wants to merge 1 commit into
nim-lang:masterfrom
georgelemon:fix/no-git-prompt-during-discovery
Open

don't block on git credential prompts during version discovery#1816
georgelemon wants to merge 1 commit into
nim-lang:masterfrom
georgelemon:fix/no-git-prompt-during-discovery

Conversation

@georgelemon

Copy link
Copy Markdown

Related to #1814: Version discovery probes many candidate URLs, including historical ones whose repos may be deleted or renamed. For those, git would otherwise block on an interactive username/password prompt.

Force GIT_TERMINAL_PROMPT=0 (an explicit user-set value is respected) for the duration of discovery so dead URLs fail fast and the version is excluded, then restore the previous value so actual installs keep interactive prompts for private repositories

Related to nim-lang#1814. Version discovery probes many candidate URLs, including
historical ones whose repos may be deleted or renamed. For those, git would
otherwise block on an interactive username/password prompt. During discovery,
set GIT_TERMINAL_PROMPT=0 when it isn't already set by the user, so dead URLs
fail fast and the version is excluded; restore the previous value afterwards so
actual installs keep interactive prompts for private repositories.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant