Skip to content

Specifying an invalid git host dependency hangs #2070

@ngoldbaum

Description

@ngoldbaum

I had a typo in my pixi.toml to point to a github URL that is a 404:

[package.host-dependencies]
python.git = "https://github.com/crosaderky/cpython"
python.subdirectory = "Tools/pixi-packages/tsan"
python.rev = "eb0149f0b830651bffe757126f9d699859aa0fda"

This hangs forever despite the fact that the repository doesn't exist:

DEBUG pixi_git::resolver: Fetching source distribution from Git: https://github.com/crosaderky/cpython
DEBUG fetch{repository=https://github.com/crosaderky/cpython}: pixi_git::source: Updating Git source `https://github.com/crosaderky/cpython`
DEBUG fetch{repository=https://github.com/crosaderky/cpython}: pixi_git::git: Attempting GitHub fast path for: https://api.github.com/repos/crosaderky/cpython/commits/eb0149f0b830651bffe757126f9d699859aa0fda
DEBUG fetch{repository=https://github.com/crosaderky/cpython}: pixi_git::git: failed to check github fast path Reqwest(reqwest::Error { kind: Status(404, None), url: "https://api.github.com/repos/crosaderky/cpython/commits/eb0149f0b830651bffe757126f9d699859aa0fda" })
DEBUG fetch{repository=https://github.com/crosaderky/cpython}: pixi_git::git: Performing a Git fetch for: https://github.com/crosaderky/cpython with repo path /Users/goldbaum/Library/Caches/rattler/cache/git-v0/db/402bfcf6bf6f4164
▪ fetching repodata    [━━━━━━━━━━━━━━━━━━━━] 1.16 MiB/1.16 MiB
▪ fetching repodata    [━━━━━━━━━━━━━━━━━━━━] 1.16 MiB/1.16 MiB
▪ solving              [━━━━━━━─────────────]  1/3
  ⠚ fetching git dependencies      checking out https://github.com/crosaderky/cpython@eb0149f0b830651bffe757126f9d699859aa0fda

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions