ulyssa / modalkit

A Rust library for building modal editing applications
Apache License 2.0
58 stars 8 forks source link

Commit `Cargo.lock` for openSUSE Build Service #133

Closed ulyssa closed 8 months ago

ulyssa commented 8 months ago

@photosheep reported that iamb can't build in the OBS, and is failing with the following error:

[  835s] + /usr/bin/cargo auditable install -j16 --offline --no-track --root=/home/abuild/rpmbuild/BUILDROOT/iamb-0.0.8.88af9bf-0.x86_64/usr --path .
[  835s]   Installing iamb v0.0.9-alpha.1 (/home/abuild/rpmbuild/BUILD/iamb-0.0.8.88af9bf)
[  835s] error: failed to compile `iamb v0.0.9-alpha.1 (/home/abuild/rpmbuild/BUILD/iamb-0.0.8.88af9bf)`, intermediate artifacts can be found at `/home/abuild/rpmbuild/BUILD/iamb-0.0.8.88af9bf/target`.
[  835s] To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
[  835s] 
[  835s] Caused by:
[  835s]   failed to get `modalkit` as a dependency of package `iamb v0.0.9-alpha.1 (/home/abuild/rpmbuild/BUILD/iamb-0.0.8.88af9bf)`
[  835s] 
[  835s] Caused by:
[  835s]   failed to load source for dependency `modalkit`
[  835s] 
[  835s] Caused by:
[  835s]   Unable to update https://github.com/ulyssa/modalkit?rev=f9f0517ed6a6152c1eab36d2e71b11f38831d5e6
[  835s] 
[  835s] Caused by:
[  835s]   the source git+https://github.com/ulyssa/modalkit?rev=f9f0517ed6a6152c1eab36d2e71b11f38831d5e6 requires a lock file to be present first before it can be
[  835s]   used against vendored source code

This comes from here in cargo, and seems to be a result of the current iamb dependency on a Git URL for modalkit, and not being able to verify that the locked dependencies are the same while building.

I can't reproduce this locally, but it seems like commiting the Cargo.lock and pointing iamb at the update commit should fix it.