cenotelie / cratery

MIT License
132 stars 1 forks source link

Doc does not works correctly #24

Closed MarcAntoine-Arnaud closed 5 days ago

MarcAntoine-Arnaud commented 1 week ago

I have a crate (CRATE_2) that depends of an another crate (CRATE_1) on the Cratery registry.

-- stderr
    Updating crates.io index
    Updating `sparse+https://crates.mydomain.com/` index
error: failed to get `CRATE_1` as a dependency of package `CRATE_2 v0.5.0 (/tmp/CRATE_2_0.5.0/CRATE_2-0.5.0)`

Caused by:
  no token found for `sparse+https://crates.mydomain.com/`
  consider setting up an alternate registry in Cargo's configuration
  as described by https://doc.rust-lang.org/cargo/reference/registries.html

  [registries]
  my-registry = { index = "sparse+https://crates.mydomain.com/" }

it seams the registry is not well defined.

woutersl commented 1 week ago

This is supposed to work and indeed used to work. I suppose this is a regression on main, maybe caused by the writing of the local configuration for git and cargo on startup. I'll check that.

woutersl commented 5 days ago

This fails because the credentials configuration written to disk for cargo does not include 'sparse'. We should also write the same configuration for sparse if enabled in the configuration.

woutersl commented 5 days ago

this should be fixed in main and version 1.10.1