| 19 Aug 2025 |
Gaétan Lepage | Is fetchCargoVendor pruning non-.rs files? | 19:15:24 |
dramforever | In reply to @glepage:matrix.org
The latest release of tinymist fails to build. More precisely, the hayro-interpret crate
Compiling hayro-interpret v0.1.0 (https://github.com/LaurenzV/hayro?rev=e701f95#e701f956)
error: couldn't read `/build/tinymist-0.13.25-vendor/hayro-interpret-0.1.0/src/../../assets/CGATS001Compat-v2-micro.icc`: No such file or directory (os error 2)
--> /build/tinymist-0.13.25-vendor/hayro-interpret-0.1.0/src/color.rs:837:9
|
837 | include_bytes!("../../assets/CGATS001Compat-v2-micro.icc"),
|
The assets folder is not present in the cargoDeps output:
gaetan in 🌐 cuda in nixpkgs on update/tinymist
❯ nix-build -A tinymist.cargoDeps
/nix/store/5w2m8hnv76q2cay69i2ifgzgn8wngr6p-tinymist-0.13.25-vendor
gaetan in 🌐 cuda in nixpkgs on update/tinymist
❯ ls -al result/hayro-interpret-0.1.0/
.r--r--r-- 13 root 1 Jan 1970 .cargo-checksum.json
.r--r--r-- 626 root 1 Jan 1970 Cargo.toml
.r--r--r-- 673 root 1 Jan 1970 README.md
dr-xr-xr-x - root 1 Jan 1970 src
the hayro-interpret package uploaded to crates.io does not have the assets directory | 20:21:34 |
dramforever | uh | 20:22:48 |
dramforever | sorry | 20:22:49 |
Gaétan Lepage | Ok, so we'll need to fetchurl them and patch the crate I guess | 20:22:50 |
dramforever | i missed it, it does seem to have that directoey | 20:23:18 |
dramforever | but it should be ../asset right? not ../../assets | 20:24:32 |
Gaétan Lepage | Yes, I have seen that. But the assets is still missing from ${tinymist.cargoDeps}/hayro-interpret-0.1.0/... | 20:25:34 |
dramforever | okay this is weird | 20:26:49 |
dramforever | check this out https://github.com/LaurenzV/hayro/commit/1faaa0568915c3afb623a887a36446a6960a7780 | 20:26:55 |
dramforever | a version bump from 0.1.0 to 0.1.0 | 20:27:04 |
Gaétan Lepage | Intereseting X) | 20:27:34 |
dramforever | mixed with a whole bunch of stuff | 20:27:54 |
dramforever | maybe try clearing the cargoDepsHash (or whatever the proper name) and refetching the package? | 20:28:31 |
dramforever | there's definitely something wrong | 20:28:44 |
Gaétan Lepage | Yup, maybe upstream should try to update to 0.2.0... | 20:32:03 |
dramforever | In reply to @dramforever:matrix.org maybe try clearing the cargoDepsHash (or whatever the proper name) and refetching the package? i would guess just redoing cargoDepsHash might fix it | 20:33:32 |
dramforever | but in that case would this mean hayro-interpret 0.1.0 changed...? | 20:33:58 |
Gaétan Lepage | I tried to clean cargoDepsHash | 20:41:45 |
dramforever | nevermind actually, it says it's pinned to https://github.com/LaurenzV/hayro?rev=e701f95#e701f956 | 20:58:56 |
dramforever | not the version | 20:59:02 |
dramforever | just more reasons doing debugging on a phone is a bad idea, i keep missing stuff | 20:59:46 |
dramforever | so it's pinned to e701f956 on github, which is a broken "0.1.0" | 21:00:19 |
Gaétan Lepage | Ok too bad... Maybe let's wait for tinymist to update their lockfile then... | 21:02:06 |
dramforever | an old version of typst depends on hayro e701f956 https://github.com/typst/typst/commit/af2253ba16dfdc731e787e3a43a6f6a63ea65e0a | 21:05:35 |
dramforever | which, as we've established, is just broken https://github.com/LaurenzV/hayro/tree/e701f9569157a2fe4ade68930dc9e9283782dcca/hayro-interpret | 21:05:47 |
Gaétan Lepage | -> https://github.com/NixOS/nixpkgs/pull/435051#issuecomment-3202225800 | 21:07:33 |
Gaétan Lepage | Thanks for the help dramforever! | 21:07:41 |
dramforever | okay the plot thickens | 21:07:51 |
dramforever | apparently tinymist depends on a fork of typst | 21:08:31 |