Skip to content
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

With latest nightly rust, builds failing due to changes in cargo output #398

Closed
alex opened this issue Jan 18, 2024 · 6 comments
Closed

Comments

@alex
Copy link
Contributor

alex commented Jan 18, 2024

I'm currently seeing all builds failing on the latest nightly Rust with:

  error: Rust build failed; unable to find any cdylib or dylib build artifacts

This error comes from: https://github.com/PyO3/setuptools-rust/blob/main/setuptools_rust/build.py#L301-L310

The cause appears to be that the format of the package_id variable changed. On stable, package_id for me is: cryptography-rust 0.1.0 (path+file:///Users/alex_gaynor/projects/cryptography/src/rust), while on nightly, the package_id is path+file:///Users/alex_gaynor/projects/cryptography/src/rust#cryptography-rust@0.1.0.

However, the format of package IDs found in the cargo JSON build output is unchanged, which results in _find_cargo_artifacts no longer matching things.

I'm not sure if this is a cargo bug or a setuptools-rust bug.

@alex
Copy link
Contributor Author

alex commented Jan 18, 2024

I think rust-lang/cargo#13311 might be the cause

@alex
Copy link
Contributor Author

alex commented Jan 18, 2024

Actually, more likely rust-lang/cargo#12914

@alex
Copy link
Contributor Author

alex commented Jan 18, 2024

It looks like these landed in rustc in seperate bumps:

And I believe these were split across separate nightlies, so it is possible this will be resolved in the next nightly bump.

@davidhewitt
Copy link
Member

This is also affecting maturin, I guess we see if it resolves again tomorrow then?

@alex
Copy link
Contributor Author

alex commented Jan 18, 2024 via email

@alex
Copy link
Contributor Author

alex commented Jan 19, 2024

Ok we're good with the nightly that came out a few minutes ago. Declaring victory here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants