-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Renaming kebab-case
cdylib target to kebab_case
in metadata breaks cargo subcommands
#13705
Comments
kebab-case
cdylib target in metadata to kebab_case
breaks cargo subcommandskebab-case
cdylib target to kebab_case
in metadata breaks cargo subcommands
Isn't #12783 only available on nightly? |
Correct, so something else must be going on. @workingjubilee could you add reproduction steps? |
By just looking at linked issues in #12783, some folks are certainly bitten by |
Unfortunately the "reproduction steps" seem to involve the enormity of the pgrx framework. I spent a bit on trying to rebuild a minimal version from scratch, and I seem to be unable to find a minimal reproducer that demonstrates that it happens on beta first, despite it most definitely happening anytime I have set I will however resume bisecting across rustc commits, and while I go at it, I can try to see if I can find the exact update to rustc where the breaks start happening for cargo-pgrx. Maybe then I will get some insight into extracting a reproducer. |
Oh, I can add this much: Part of the reason I tried to go directly for a minimal reproducer instead of cutting things down in a more binary-search style is that by the time
...maybe there's an environment variable cargo previously set that is leading to this result. 🤔 |
Retrospectively, I think I misremembered, conflated, or misunderstood something amidst the hell of figuring out several things going wrong at once in the repository's test suite, so I think this "only" has the same cause as the other breakages. |
Problem
Hi!
Previously for targets (possibly just cdylib targets?), cargo would emit an
artifact.target.name
that matched the name of the package! Now it uses the underscored name. This broke cargo-pgrx on beta, and it appears that it or a related change has broken at least one other cargo tool. I believe the breaking change is in the range of 7bb7b53...54d8815 since it appears on beta but not stable, for me.I discovered this while hunting another bug or I would have figured it out much faster. As-is, it took me a while to narrow down this problem from amidst my other issues. If I can I will try to fix my other problems and bisect this to a specific cargo commit but I have a lot going on right now so! Though, maybe I will get lucky and this will somehow be the same issue?
It would be nice if this was publicized much more loudly but it doesn't seem to be in the CHANGELOG at that point in time. It might also be nice if I had other ways of finding the mapping of target -> output .so, .dylib, or .dll name than rummaging through the compiler's output messages or randomly picking over the output directory! I don't think I've ever seen documentation promising a particular output format...
If it's relevant, just to make things more confusing, this is a library that is both an rlib and cdylib!
Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: