Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: lucasew <[email protected]>
  • Loading branch information
lucasew committed Jan 8, 2025
1 parent 41c94c6 commit a2ce768
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/ratchet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::collections::HashMap;
use relative_path::RelativePathBuf;

use crate::nix_file::CallPackageArgumentInfo;
use crate::problem::{npv_160, npv_161, npv_162, npv_163, Problem};
use crate::problem::{npv_160, npv_161, npv_162, npv_163, npv_169, Problem};
use crate::validation::{self, Validation, Validation::Success};

/// The ratchet value for the entirety of Nixpkgs.
Expand Down Expand Up @@ -175,3 +175,16 @@ impl ToProblem for UsesByName {
}
}
}

// The ratchet value of an attribute for the check that new nixpkgs changes do not
// introduce top level with or withs that could shadow scope.

pub enum DoesNotIntroduceToplevelWiths {}

impl ToProblem for DoesNotIntroduceToplevelWiths {
type ToContext = ();

fn to_problem(_name: &str, _optional_from: Option<()>, _to: &Self::ToContext) -> Problem {
npv_169::TopLevelWithMayShadowVariablesAndBreakStaticChecks::new("").into()
}
}

0 comments on commit a2ce768

Please sign in to comment.