Skip to content

cargo fails to download git repo on powerpc #15087

Open
@hpckurt

Description

@hpckurt

Trying to build rattler-build on powerpc: https://github.com/prefix-dev/rattler-build

If it was working correctly, cargo update would automatically download and update the local git dependencies. However, instead it results in the following error:

$ RUST_BACKTRACE=1 cargo update
    Updating git repository `https://github.com/wolfv/zip2`
error: failed to load source for dependency `zip`

Caused by:
  Unable to update https://github.com/wolfv/zip2?branch=patched

Caused by:
  object not found - no match for id (8fcb25229346479487823cbe0f9326d74c666d13); class=Odb (9); code=NotFound (-3)

You can git clone the repository with that specific commit ID perfectly fine outside of cargo.

Meta

rustc --version --verbose:

rustc 1.83.0 (90b35a623 2024-11-26)
binary: rustc
commit-hash: 90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf
commit-date: 2024-11-26
host: powerpc-unknown-linux-gnu
release: 1.83.0
LLVM version: 19.1.1

Backtrace from cargo build:

RUST_BACKTRACE=1 cargo build
    Updating git repository `https://github.com/wolfv/zip2`
remote: Enumerating objects: 55146, done.
remote: Counting objects: 100% (3043/3043), done.
remote: Compressing objects: 100% (169/169), done.
remote: Total 55146 (delta 2971), reused 2874 (delta 2874), pack-reused 52103 (from 2)
Receiving objects: 100% (55146/55146), 50.42 MiB | 6.99 MiB/s, done.
Resolving deltas: 100% (8637/8637), done.
From https://github.com/wolfv/zip2
 * [new ref]           8fcb25229346479487823cbe0f9326d74c666d13 -> refs/commit/8fcb25229346479487823cbe0f9326d74c666d13
error: failed to load source for dependency `zip`

Caused by:
  Unable to update https://github.com/wolfv/zip2?branch=patched#8fcb2522

Caused by:
  revspec '8fcb25229346479487823cbe0f9326d74c666d13' not found; class=Reference (4); code=NotFound (-3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-gitArea: anything dealing with gitC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions