-
Notifications
You must be signed in to change notification settings - Fork 24
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
Test failed due to missing files #42
Comments
Test fonts aren't uploaded to crates.io. but you can use the github tags
here instead of you want to run tests.
Including test assets would significantly bloat the crate for all
dependants. So I'd rather avoid them in crates.io. I'm not sure if there's
a better way here though.
…On Thu, 1 Jul 2021, 18:58 Rémi Lauzier, ***@***.***> wrote:
https://download.copr.fedorainfracloud.org/results/remilauzier/zemeroth/fedora-rawhide-x86_64/02311687-rust-ab_glyph/builder-live.log.gz
Fedora as update there version of ttf-parser but the test failed due to
missing files.
---- src/font.rs - font::Font::as_scaled (line 175) stdout ----
error: couldn't read src/../../dev/fonts/Exo2-Light.otf: No such file or
directory (os error 2)
--> src/font.rs:178:36
|
5 | let font =
FontRef::try_from_slice(include_bytes!("../../dev/fonts/Exo2-Light.otf"))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z
macro-backtrace for more info)
error: aborting due to previous error
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#42>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARZHV3ZX743RV5WCIM2IEDTVSUD7ANCNFSM47VGIQFQ>
.
|
I can't use tags since it would complicate packaging it for fedora that use rust2rpm to ease packaging. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://download.copr.fedorainfracloud.org/results/remilauzier/zemeroth/fedora-rawhide-x86_64/02311687-rust-ab_glyph/builder-live.log.gz
Fedora as update there version of ttf-parser but the test failed due to missing files.
---- src/font.rs - font::Font::as_scaled (line 175) stdout ----
error: couldn't read src/../../dev/fonts/Exo2-Light.otf: No such file or directory (os error 2)
--> src/font.rs:178:36
|
5 | let font = FontRef::try_from_slice(include_bytes!("../../dev/fonts/Exo2-Light.otf"))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error
The text was updated successfully, but these errors were encountered: