Build fail: Gettext-rs 0.4.1 no longer available from source
Steps to reproduce
Follow the build instructions
See also: Job #371792
Reproducible in:
- Flatpak unstable: yes
- Other: 0.4.6
Current behavior
flatpak-builder
and ninja -C build
fail with:
+ cargo build --manifest-path=../Cargo.toml -p podcasts-gtk
Updating crates.io index
Updating git repository `https://github.com/danigm/gettext-rs`
error: failed to load source for a dependency on `gettext-rs`
Caused by:
Unable to update https://github.com/danigm/gettext-rs?branch=no-gettext#c514bbe5
Caused by:
revspec 'c514bbe52ef892e3c0689eb474c564949d15e145' not found; class=Reference (4); code=NotFound (-3)
Expected behavior
Build completes
Additional information
The commit cargo looks for is no longer available in the gettext-rs git repo. This seems to be because the workflow used is to rebase to the repo's upstream then remove the gettext tarball.
Workarounds:
- Edit Cargo.lock to the point to the most recent commit and version of gettext-rs
- Run
cargo update
before any build commands - Switch to upstream repo of gettext-rs and accept an extra ~7MB from the included tarball
Edited by Liban Hannan