chore(3p/sources): bump channels & overlays (2024-09-01)
Included changes: * users/aspen: explicitly use open-source nvidia driver This now has to be specified explicitly, otherwise evaluation fails with an error. * users/aspen: nixfmt -> nixfmt-classic * users/aspen: fixes for renamed packages & options * users/tazjin: fixes for renamed packages & options * 3p/overlays: remove cbtemulator patch (merged upstream) * tvix/shell: remove unnecessary patches (merged upstream) * 3p/rust-crates: mark libgit2_sys as broken * users/Profpatsch: mark git-db as broken * 3p/overlays: pick `mypaint` from stable channel * tvix: fix comments that clippy doesn't like anymore * tvix/glue: disable a misfiring clippy lint (applying its suggestion breaks code below) Change-Id: I6d3fc027694bbe7425a2d25dc53d65467a44f3b0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12403 Tested-by: BuildkiteCI Reviewed-by: aspen <root@gws.fyi> Reviewed-by: Profpatsch <mail@profpatsch.de> Autosubmit: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
200d49a0e1
commit
609b68031b
19 changed files with 56 additions and 198 deletions
|
|
@ -29,9 +29,11 @@ struct ArchiveReader<'a, 'r> {
|
|||
inner: &'a mut Reader<'r>,
|
||||
|
||||
/// In debug mode, also track when we need to abandon this archive reader.
|
||||
///
|
||||
/// The archive reader must be abandoned when:
|
||||
/// * An error is encountered at any point
|
||||
/// * A file or directory reader is dropped before being read entirely.
|
||||
///
|
||||
/// All of these checks vanish in release mode.
|
||||
status: ArchiveReaderStatus<'a>,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,7 +72,8 @@ impl CAHash {
|
|||
/// - `text:sha256:$nixbase32sha256digest`
|
||||
/// - `fixed:r:$algo:$nixbase32digest`
|
||||
/// - `fixed:$algo:$nixbase32digest`
|
||||
/// which is the format that's used in the NARInfo for example.
|
||||
///
|
||||
/// These formats are used in NARInfo, for example.
|
||||
pub fn from_nix_hex_str(s: &str) -> Option<Self> {
|
||||
let (tag, s) = s.split_once(':')?;
|
||||
|
||||
|
|
@ -108,11 +109,13 @@ impl CAHash {
|
|||
/// know whether we have a invalid or a missing NixHashWithMode structure in another structure,
|
||||
/// e.g. Output.
|
||||
/// This means we have this combinatorial situation:
|
||||
///
|
||||
/// - no hash, no hashAlgo: no [CAHash] so we return Ok(None).
|
||||
/// - present hash, missing hashAlgo: invalid, we will return missing_field
|
||||
/// - missing hash, present hashAlgo: same
|
||||
/// - present hash, present hashAlgo: either we return ourselves or a type/value validation
|
||||
/// error.
|
||||
/// error.
|
||||
///
|
||||
/// This function is for internal consumption regarding those needs until we have a better
|
||||
/// solution. Now this is said, let's explain how this works.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue