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

Feature request: Provide mode to put exact git hash in bitbake recipe #33

Closed jhartzell42 closed 3 years ago

jhartzell42 commented 3 years ago

Similar to a cargo.lock file containing the exact revision of a git repo, I want my bitbake recipes, especially when covering internal deps, to do the same. I don't think this should necessary be the default behavior, but I think it should be an option.

I have posted a pull request to accomplish this.

jhartzell42 commented 3 years ago

@kraj do you think this should be the default behavior, or the previous default? I'm now wondering why the decision was made to go with branch names over specific commits when generating the bb file in the first place, as a colleague of mine pointed out to me that reproducibility was one of the goals of Yocto.

kraj commented 3 years ago

we need both branch name and commit SHA for best results.