paritytech / releng-scripts

Scripts managed and used by @paritytech/release-engineering
Apache License 2.0
0 stars 3 forks source link

reserve-crate: Cannot install cargo-generate #39

Closed lexnv closed 1 year ago

lexnv commented 1 year ago

I would want to reserve a substrate crate name using the git actions.

During the action: https://github.com/paritytech/releng-scripts/actions/runs/4566220209/jobs/8058412281 the following error was encountered:

cargo install cargo-generate --version 0.17.0
...
 error[E0277]: the trait bound `BStr: AsRef<[_; 0]>` is not satisfied
  --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/git-ref-0.18.0/src/store/packed/find.rs:95:52
   |
95 |                 .map(|(_rest, r)| r.name.as_bstr().as_ref())
   |                                                    ^^^^^^ the trait `AsRef<[_; 0]>` is not implemented for `BStr`
   |
   = help: the following other types implement trait `AsRef<T>`:
             <BStr as AsRef<BStr>>
             <BStr as AsRef<[u8]>>

error[E0277]: the trait bound `BStr: AsRef<[_; 0]>` is not satisfied
  --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/git-ref-0.18.0/src/store/packed/find.rs:91:43
   |
91 |         a.binary_search_by_key(&full_name.as_ref(), |b: &u8| {
   |                                           ^^^^^^ the trait `AsRef<[_; 0]>` is not implemented for `BStr`
   |
   = help: the following other types implement trait `AsRef<T>`: