summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2022-04-19 17:08:23 +0200
committerGitHub <noreply@github.com>2022-04-19 17:08:23 +0200
commit803499886b90536cdbb9d40eaa9085157772d771 (patch)
tree1b8dacc005e49007bbfddc7ac578ca17ebaa1d37
parent1c05e41f37da022971f0090b2a92e6340d230055 (diff)
Remove the DENO_FUTURE_CHECK warning (#14320)
It has good intentions, but it is a really terrible user experience. As such we shouldn't print this warning.
-rw-r--r--cli/main.rs5
-rw-r--r--cli/tests/testdata/future_check1.out2
2 files changed, 0 insertions, 7 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 320e4e8c3..e8a949e3d 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -1150,11 +1150,6 @@ async fn run_command(
flags: Flags,
run_flags: RunFlags,
) -> Result<i32, AnyError> {
- if !flags.has_check_flag && flags.type_check_mode == TypeCheckMode::All {
- info!("{} In future releases `deno run` will not automatically type check without the --check flag.
-To opt into this new behavior now, specify DENO_FUTURE_CHECK=1.", colors::yellow("Warning"));
- }
-
// Read script content from stdin
if run_flags.script == "-" {
return run_from_stdin(flags).await;
diff --git a/cli/tests/testdata/future_check1.out b/cli/tests/testdata/future_check1.out
index 7505efcd4..c626a5485 100644
--- a/cli/tests/testdata/future_check1.out
+++ b/cli/tests/testdata/future_check1.out
@@ -1,3 +1 @@
-Warning In future releases `deno run` will not automatically type check without the --check flag.
-To opt into this new behavior now, specify DENO_FUTURE_CHECK=1.
Check [WILDCARD]/future_check.ts