| 1 Sep 2025 |
| Yusuf Raji joined the room. | 11:00:20 |
hexa | the servo build for mozjs_sys fails because it tries to inspect the cargo metadata for the workspace | 23:05:03 |
hexa |
called Result::unwrap() on an Err value: CargoMetadata { stderr: "error: failed to get encoding_c as a dependency of package mozjs_sys v0.140.0-1 (/build/servo-0-unstable-2025-09-01-vendor/mozjs_sys-0.140.0-1)\n\nCaused by:\n failed to load source for dependency encoding_c\n\nCaused by:\n Unable to update registry crates-io\n\nCaused by:\n failed to update replaced source registry crates-io\n\nCaused by:\n failed to read root of directory source: /build/servo-0-unstable-2025-09-01-vendor/@vendor@\n\nCaused by:\n No such file or directory (os error 2)\n" }
| 23:05:21 |
hexa | https://github.com/servo/mozjs/blob/main/mozjs-sys/build.rs#L130 | 23:05:36 |
hexa | the reason is this snippet we ship in .cargo/config.toml of the vendor data | 23:06:10 |
hexa | ❯ cat ./b/servo-0-unstable-2025-09-01-vendor/.cargo/config.toml
[source.vendored-sources]
directory = "@vendor@"
[source.crates-io]
replace-with = "vendored-sources"
| 23:06:13 |
hexa | * ❯ cat ./b/servo-0-unstable-2025-09-01-vendor/.cargo/config.toml
[source.vendored-sources]
directory = "@vendor@"
[source.crates-io]
replace-with = "vendored-sources"
[...]
| 23:06:21 |