Add ability to have a pin version - #162
Conversation
|
I don't think this will work, even for the latest release. APIs can be incompatible across versions and we need to handle these differences. Supporting all versions, or even N > 1 versions, is too much work IMO. I would just stick to one stable version. What I think would make sense is a parameter like Also, we would need to test both options in CI. |
Yes, you're probably right |
Are you willing to give it a try? 🙂 |
I tested on another branch: https://github.com/littlejo/aya-template/tree/stable-release3 But i have a lot of errors: |
|
@tamird would you please follow up on #152 (review)? 😅 |
What
This PR adds support for an optional pinned version (
rev_version) for Aya crates(aya, aya-build, aya-ebpf, aya-log, aya-log-ebpf) in the aya-template.
Why
Previously, the template always pointed to the
mainbranch of the Aya repository.As a result, cargo-generate could break when new commits in Aya changed the public API
(e.g., removal of
cargo_metadatafromaya-build).With this change, users can optionally provide
rev_versionto pin the templatedependencies to a specific commit, making generated projects more stable and reproducible.
Example usage