Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/holger-ui

crates/holger-ui-recipe/tests/escape_scan.rs

//! **The console's build is not refused for the browser tests' path deps** (gate holger, loki
//! 2026-10-25: `cargo xtask build` refused `mvp-ui` with "Add `siblings = ["edda", "holger",
//! "monetize"]`", every escape found under `browser-tests/`).
//!
//! `browser-tests/` is its own workspace (its own `[workspace]` and lock, excluded here), so cargo
//! never loads it when it builds a console row, and the Build Thing's escape scan must skip it.
//! nornir-build-thing 0.2.0 scanned the whole tree; from 0.2.6 the scan stays in the ONE
//! workspace it builds.

use holger_ui_recipe::{declared, nornir_build_thing, repo_root};

#[test]
fn the_browser_tests_workspace_demands_no_sibling_of_the_console() {
    // The scan alone: a lone clone has no ../edda to mount, and that is not what this asks.
    let tc = nornir_build_thing::cargo_container::CargoToolchain { siblings: Vec::new(), ..declared().toolchain.expect("holger-ui declares its [build.toolchain]") };
    if let Err(e) = tc.check_escaping_path_deps(&repo_root()) {
        panic!("the console's build is refused for a detached workspace's path deps: {e:#}");
    }
}