-
-
Notifications
You must be signed in to change notification settings - Fork 274
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
fix: preserve workspace inherited dependencies when building binary #1739
Conversation
✅ Deploy Preview for maturin-guide ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Thanks! I think the issue was maturin/src/source_distribution.rs Lines 274 to 276 in 4c3d5c2
[dependencies.xxx]
workspace = true
# other fields |
If I read the code correct, maturin/src/source_distribution.rs Lines 274 to 276 in 4c3d5c2
this line will only remove workspace deps that are not path deps, since it is inside this check. maturin/src/source_distribution.rs Lines 240 to 242 in 4c3d5c2
However, The comment here also specifies that the workspace deps should be removed and have been converted into path deps. maturin/src/source_distribution.rs Lines 295 to 301 in 8364dd9
|
Right, we need to remove all It's a bit fragile, I do want to stop doing that, just lift |
Thanks for the explanation! |
I don't have enough context for the fix but it did build on my local machine.
Before:
After:
fix #1738