Skip to content

aya-ebpf-macros: remove aya-ebpf version #1106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Conversation

tamird
Copy link
Member

@tamird tamird commented Dec 2, 2024

The presence of this version specification causes cargo-smart-release to
trip on the circular dependency.

Fixes #1050.


This change is Reviewable

@tamird tamird requested a review from dave-tucker December 2, 2024 14:37
@mergify mergify bot added the aya-bpf This is about aya-bpf (kernel) label Dec 2, 2024
Copy link

netlify bot commented Dec 2, 2024

Deploy Preview for aya-rs-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 3ead4ef
🔍 Latest deploy log https://app.netlify.com/sites/aya-rs-docs/deploys/674ee7e1c29c4d0007abcf7d
😎 Deploy Preview https://deploy-preview-1106--aya-rs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dave-tucker
Copy link
Member

CI seems to disagree about it being unused 🤔

@tamird
Copy link
Member Author

tamird commented Dec 2, 2024

Oh, it's a dependency for doctests 🤦 that's why running clippy locally didn't catch it.

@tamird
Copy link
Member Author

tamird commented Dec 2, 2024

@dave-tucker seems this issue is related: rust-lang/rust#58700 and one solution is to move documentation to the main crate from the macro crate. This is pretty inconvenient in our case because we write

pub use aya_ebpf_macros as macros;

Maybe this bug should go upstream to https://github.com/Byron/cargo-smart-release?

EDIT: filed GitoxideLabs/cargo-smart-release#33.

@@ -16,6 +16,3 @@ proc-macro2 = { workspace = true }
proc-macro-error = { workspace = true }
quote = { workspace = true }
syn = { workspace = true, default-features = true, features = ["full"] }

[dev-dependencies]
aya-ebpf = { path = "../ebpf/aya-ebpf", version = "^0.1.1", default-features = false }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the version = * field and the problems will go away. gitoxide also does this, and also went through the trouble with the version field.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Done.

The presence of this version specification causes cargo-smart-release to
trip on the circular dependency.

Fixes aya-rs#1050.
@tamird tamird changed the title aya-ebpf-macros: remove dev dependency on aya-ebpf aya-ebpf-macros: remove aya-ebpf version Dec 3, 2024
Copy link
Member

@dave-tucker dave-tucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! LGTM

@tamird tamird merged commit dae394e into aya-rs:main Dec 3, 2024
27 checks passed
@tamird tamird deleted the circular-dep branch December 3, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aya-bpf This is about aya-bpf (kernel)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cyclic dependency breaks cargo smart-release
3 participants