Skip to content

maturin build failure (refstorage format) #164

Description

@kiefernforst

When trying to build with python -m build --wheel --no-isolation I'm getting:

Running `maturin pep517 build-wheel -i /usr/bin/python3 --compatibility off`
    Updating crates.io index
    Updating git repository `https://github.com/open-meteo/om-file-format`
error: failed to get `om-file-format-sys` as a dependency of package `python-omfiles v1.2.0 (./src/python-omfiles)`

Caused by:
  failed to load source for dependency `om-file-format-sys`

Caused by:
  unable to update https://github.com/open-meteo/om-file-format?rev=18bee8578d953bd95ad7de1ae688faa7cf421f7c#18bee857

Caused by:
  unknown refstorage format 'unknown'; class=Repository (6); code=Invalid (-21)
💥 maturin failed
  Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
  Caused by: `cargo metadata` exited with an error: 
Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/usr/bin/python3', '--compatibility', 'off'] returned non-zero exit status 1

To mitigate the refstorage situation I've added a ~/.cargo/config.toml:

[net]
git-fetch-with-cli = true

which is respected by cargo, but sadly not by maturin!

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