meta-rust / cargo-bitbake

cargo extension that can generate BitBake recipes utilizing the classes from meta-rust
Apache License 2.0
83 stars 57 forks source link

`cargo bitbake` fails fetching crates.io-index #38

Closed jaskij closed 2 years ago

jaskij commented 2 years ago

Installed with cargo install cargo-bitbake --locked, as per the workaround in https://github.com/meta-rust/cargo-bitbake/issues/29#issuecomment-841929943 .

cargo bitbake fails with the following output:

$ cargo bitbake
    Updating crates.io index
error: failed to get `simplelog` as a dependency of package `proto-test v0.1.0 (/home/jaskij/projects/rust/proto_test)`

Caused by:
  failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  invalid version 0 on git_proxy_options; class=Invalid (3)

curiously, cargo update works:

$ cargo update
    Updating crates.io index

my Cargo.toml:

[package]
name = "proto-test"
version = "0.1.0"
edition = "2018"

[dependencies]

flatbuffers = "^2.0.0"
protobuf = "^2.25.1"

log = "^0.4.14"
simplelog = "^0.10.2"

[build-dependencies]

flatc-rust = "^0.2.0"
protoc-rust = "^2.25.1"
h3ndrk commented 2 years ago

I have the same problem that you are describing. I'm commenting to get attention by the authors to hopefully fix this. :+1:

jaskij commented 2 years ago

As a possible help to narrowing this down, I've tested more packages.

Working:

Not working:

A pattern seems to emerge - binaries succeed, libraries fail.

jaskij commented 2 years ago

@h3ndrk after testing, the version with updated deps from #40 works fine.