mirror of
https://github.com/zerotier/coyote.git
synced 2026-05-22 16:26:53 -07:00
ZLINT_WARN env var for controlling warnings-as-errors with zlint
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
This commit is contained in:
@@ -34,11 +34,14 @@ use tokio::sync::Mutex;
|
||||
use url::Url;
|
||||
|
||||
const DEBUG_VAR: &str = "DEBUG";
|
||||
const ZLINT_WARN_VAR: &str = "ZLINT_WARN";
|
||||
|
||||
const HBA_CONFIG_PATH: &str = "hack/pg_hba.conf";
|
||||
|
||||
static INIT: Once = Once::new();
|
||||
|
||||
lazy_static! {
|
||||
static ref ZLINT_WARN: bool = !std::env::var(ZLINT_WARN_VAR).unwrap_or_default().is_empty();
|
||||
static ref DEBUG: bool = !std::env::var(DEBUG_VAR).unwrap_or_default().is_empty();
|
||||
static ref IMAGES: Vec<&'static str> = vec![
|
||||
"certbot/certbot:latest",
|
||||
@@ -335,6 +338,12 @@ impl TestService {
|
||||
let key = key.clone();
|
||||
s.insert(key);
|
||||
}
|
||||
"warn" => {
|
||||
if *ZLINT_WARN {
|
||||
let key = key.clone();
|
||||
s.insert(key);
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user