-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
rust: cargo wrap does not seem to like hyphens in project name #13754
Comments
Digging around in meson a bit It seems meson/mesonbuild/interpreter/dependencyfallbacks.py Lines 126 to 131 in 9575ed3
and the cargo interpreter is expecting the version number to be included when it splits the provided name. meson/mesonbuild/cargo/interpreter.py Lines 711 to 712 in 9575ed3
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using a meson wrap around a Rust cargo file, it seems to internally chop the name at the first hyphen. In particular, the project
quick-xml
gets cut toquick
at some point, and then it fails to find the Cargo.toml and fails to build. I have only seen this when the cargo package has a hyphen in its name.To Reproduce
The following wrap will fail to
will fail to compile when used as a wrap with
dependency('quick-xml-0.36.2-rs')
with:I haven't been able to track it down, but somewhere, the package
quick-xml
is getting chopped toquick
and then it is failing.I have also tried with another project with a hyphen in the name
grip-grab
, and get a similar error, with the name getting truncated togrip
in this case. My naive hypothesis is that some code to deal with-rs
part of cargo wraps is truncating it, however, I have not looked further into it.Expected behavior
I would expect it to compile as a dependency without an issue.
system parameters
The text was updated successfully, but these errors were encountered: