!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

708 Members
Rust160 Servers

Load older messages


SenderMessageTime
25 Mar 2025
@tomasajt:matrix.orgTomait will not fetch from the cache because the name is different13:50:56
@emilazy:matrix.orgemily as in, defaulting useFetchCargoVendor = true would invalidate the cache even with the same hashes? right, makes sense 13:51:19
@emilazy:matrix.orgemilycould we do anything to detect old hashes?13:51:42
@emilazy:matrix.orgemilyI guess probably not. so maybe it is okay for them to just fail with a mismatch13:51:57
@tomasajt:matrix.orgTomayea13:52:07
@emilazy:matrix.orgemilyI was hoping we could print out a more useful message so people don't just go "why is my hash invalidated??" but I guess people are somewhat used to hashes changing anyway :P13:52:31
@tomasajt:matrix.orgTomais the breaking rust version backported btw?13:52:43
@emilazy:matrix.orgemily ok, then I guess we can just do useFetchCargoVendor ? true, assert lib.assertMsg useFetchCargoVendor "buildRustPackage: useFetchCargoVendor is now the only option" 13:53:14
@emilazy:matrix.orgemily we never backport Rust versions as rustc 13:53:28
@emilazy:matrix.orgemilywe add separate packages if necessary13:53:49
@emilazy:matrix.orgemily(AIUI)13:53:50
@tomasajt:matrix.orgTomaseems fine13:54:02
@emilazy:matrix.orgemily we might want to deprecate/remove the useless useFetchCargoVendor at some point, but that can probably wait 13:54:42
@emilazy:matrix.orgemilyas long as the docs don't tell people to add it13:54:51
@tomasajt:matrix.orgTomabtw what will happen on 24.11?13:55:59
@emilazy:matrix.orgemilyI assume nothing? but I'm not sure what you're asking13:56:21
@emilazy:matrix.orgemily24.11 is on whatever Rust version it released with for its lifespan13:56:27
@emilazy:matrix.orgemily even if we add rustc_1_85 in the next few months, it won't be default, so there'd be no breaking change (I guess we'd have to backport the new machinery in that case) 13:56:57
@tomasajt:matrix.orgTomalet's say we make useFetchCargoVendor default now, will we backport that or no?13:57:52
@emilazy:matrix.orgemilyno13:58:05
@emilazy:matrix.orgemilywe don't backport breaking changes13:58:12
@emilazy:matrix.orgemily is useFetchCargoVendor even in 24.11? 13:58:15
@tomasajt:matrix.orgTomayes, I believe13:58:25
@emilazy:matrix.orgemilyright13:58:32
@emilazy:matrix.orgemilyis your concern that people need to be able to write packages compatible with both 24.11 and 25.05?13:58:41
@emilazy:matrix.orgemily I believe they can do that by setting it explicitly to true. 13:58:58
@emilazy:matrix.orgemilywe can't avoid 25.05 having a breaking change from 24.11, because 1.85 already broke all the hashes13:59:03
@tomasajt:matrix.orgTomaTrue, and they will get warned anyways13:59:10
@emilazy:matrix.orgemilyso since we're locked in to a breaking change, we should make it the safest and most ergonomic one that avoids old hashes being used from the cache and makes things work without setting a flag manually13:59:21
@emilazy:matrix.orgemily shipping with useFetchCargoVendor = false; as the default means either (a) dangerous reuse of cached FODs that now don't reproduce, if we keep the old mechanism or (b) if we remove the old mechanism (which I think we ought to), you have to set a flag on every Rust package just to get it to eval, which is silly 14:00:15

Show newer messages


Back to Room ListRoom Version: 6