From 914b7495a854981a3671e24f527d792f2ad1b324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 7 Mar 2024 21:13:36 +0000 Subject: fix(publish): reland error if there are uncommitted changes (#22613) (#22632) Reverted in https://github.com/denoland/deno/pull/22625 --- tests/util/server/src/lib.rs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'tests/util/server/src') diff --git a/tests/util/server/src/lib.rs b/tests/util/server/src/lib.rs index e06ba2b39..debe2b698 100644 --- a/tests/util/server/src/lib.rs +++ b/tests/util/server/src/lib.rs @@ -57,7 +57,7 @@ pub fn env_vars_for_npm_tests() -> Vec<(String, String)> { ] } -pub fn env_vars_for_jsr_tests() -> Vec<(String, String)> { +pub fn env_vars_for_jsr_tests_with_git_check() -> Vec<(String, String)> { vec![ ("JSR_URL".to_string(), jsr_registry_url()), ("DISABLE_JSR_PROVENANCE".to_string(), "true".to_string()), @@ -65,6 +65,17 @@ pub fn env_vars_for_jsr_tests() -> Vec<(String, String)> { ] } +pub fn env_vars_for_jsr_tests() -> Vec<(String, String)> { + let mut vars = env_vars_for_jsr_tests_with_git_check(); + + vars.push(( + "DENO_TESTING_DISABLE_GIT_CHECK".to_string(), + "1".to_string(), + )); + + vars +} + pub fn env_vars_for_jsr_provenance_tests() -> Vec<(String, String)> { let mut envs = env_vars_for_jsr_tests(); envs.retain(|(key, _)| key != "DISABLE_JSR_PROVENANCE"); @@ -114,6 +125,10 @@ pub fn env_vars_for_jsr_npm_tests() -> Vec<(String, String)> { vec![ ("NPM_CONFIG_REGISTRY".to_string(), npm_registry_url()), ("JSR_URL".to_string(), jsr_registry_url()), + ( + "DENO_TESTING_DISABLE_GIT_CHECK".to_string(), + "1".to_string(), + ), ("DISABLE_JSR_PROVENANCE".to_string(), "true".to_string()), ("NO_COLOR".to_string(), "1".to_string()), ] -- cgit v1.2.3