anki icon indicating copy to clipboard operation
anki copied to clipboard

unknown refstorage format: percent-encoding-iri

Open kiefernforst opened this issue 5 months ago • 3 comments

Please be so kind to move this issue to https://github.com/ankitects/rust-url

I'm having an issue with https://github.com/ankitects/rust-url/commit/bb930b8d089f4d30d7d19c12e54e66191de47b88

error: failed to get `percent-encoding-iri` as a dependency of package `anki v0.0.0 (.../anki/rslib)`

Caused by:
  failed to load source for dependency `percent-encoding-iri`

Caused by:
  unable to update https://github.com/ankitects/rust-url.git?rev=bb930b8d089f4d30d7d19c12e54e66191de47b88#bb930b8d

Caused by:
  unknown refstorage format 'unknown'; class=Repository (6); code=Invalid (-21)

In https://github.com/ankitects/rust-url/blob/main/percent_encoding/Cargo.toml percent-encoding-iri is still named percent-encoding

kiefernforst avatar Jun 10 '26 08:06 kiefernforst

Are you getting this while building Anki? What's your OS?

abdnh avatar Jun 10 '26 12:06 abdnh

Arch-based repo using the PKGBUILD from standard ArchLinux

kiefernforst avatar Jun 10 '26 13:06 kiefernforst

It looks like a cargo issue or something with the Arch package. You might be able to work around it by switching Cargo.toml to use the official percent-encoding crate or pointing it to a local checkout of this branch: https://github.com/ankitects/rust-url/tree/ascii

We're planning to publish the fork or replace the git dependency in the future: https://github.com/ankitects/rust-url/pull/1

abdnh avatar Jun 10 '26 13:06 abdnh