!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

666 Members
Rust153 Servers

Load older messages


SenderMessageTime
19 Aug 2025
@glepage:matrix.orgGaétan Lepage Is fetchCargoVendor pruning non-.rs files? 19:15:24
@dramforever:matrix.orgdramforever
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:matrix.orgdramforeveruh20:22:48
@dramforever:matrix.orgdramforeversorry20:22:49
@glepage:matrix.orgGaétan Lepage Ok, so we'll need to fetchurl them and patch the crate I guess 20:22:50
@dramforever:matrix.orgdramforeveri missed it, it does seem to have that directoey20:23:18
@dramforever:matrix.orgdramforever but it should be ../asset right? not ../../assets 20:24:32
@glepage:matrix.orgGaé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:matrix.orgdramforeverokay this is weird20:26:49
@dramforever:matrix.orgdramforevercheck this out https://github.com/LaurenzV/hayro/commit/1faaa0568915c3afb623a887a36446a6960a778020:26:55
@dramforever:matrix.orgdramforevera version bump from 0.1.0 to 0.1.020:27:04
@glepage:matrix.orgGaétan LepageIntereseting X)20:27:34
@dramforever:matrix.orgdramforevermixed with a whole bunch of stuff20:27:54
@dramforever:matrix.orgdramforevermaybe try clearing the cargoDepsHash (or whatever the proper name) and refetching the package?20:28:31
@dramforever:matrix.orgdramforeverthere's definitely something wrong20:28:44
@glepage:matrix.orgGaétan LepageYup, maybe upstream should try to update to 0.2.0...20:32:03
@dramforever:matrix.orgdramforever
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:matrix.orgdramforeverbut in that case would this mean hayro-interpret 0.1.0 changed...?20:33:58
@glepage:matrix.orgGaétan LepageI tried to clean cargoDepsHash20:41:45
@dramforever:matrix.orgdramforever nevermind actually, it says it's pinned to https://github.com/LaurenzV/hayro?rev=e701f95#e701f956 20:58:56
@dramforever:matrix.orgdramforevernot the version20:59:02
@dramforever:matrix.orgdramforeverjust more reasons doing debugging on a phone is a bad idea, i keep missing stuff20:59:46
@dramforever:matrix.orgdramforever so it's pinned to e701f956 on github, which is a broken "0.1.0" 21:00:19
@glepage:matrix.orgGaétan Lepage Ok too bad... Maybe let's wait for tinymist to update their lockfile then... 21:02:06
@dramforever:matrix.orgdramforever an old version of typst depends on hayro e701f956 https://github.com/typst/typst/commit/af2253ba16dfdc731e787e3a43a6f6a63ea65e0a 21:05:35
@dramforever:matrix.orgdramforeverwhich, as we've established, is just broken https://github.com/LaurenzV/hayro/tree/e701f9569157a2fe4ade68930dc9e9283782dcca/hayro-interpret21:05:47
@glepage:matrix.orgGaétan Lepage -> https://github.com/NixOS/nixpkgs/pull/435051#issuecomment-3202225800 21:07:33
@glepage:matrix.orgGaétan Lepage Thanks for the help dramforever! 21:07:41
@dramforever:matrix.orgdramforeverokay the plot thickens21:07:51
@dramforever:matrix.orgdramforever apparently tinymist depends on a fork of typst 21:08:31

Show newer messages


Back to Room ListRoom Version: 6