From a6c41303bb21e229f2d58448fc1584bbdbeb877c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20H=E1=BB=93ng=20Qu=C3=A2n?= Date: Fri, 14 Feb 2025 09:53:09 +0700 Subject: [PATCH] Update toolkit.nu per removal of stdlib-candidate (#1046) stdlib-candidate was removed in #1042 but test script still refer on it. The concensus is to [remove](https://github.com/nushell/nu_scripts/pull/1044#discussion_r1954636683) the test case. --- toolkit.nu | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/toolkit.nu b/toolkit.nu index fcb3963..037616e 100644 --- a/toolkit.nu +++ b/toolkit.nu @@ -32,13 +32,6 @@ export def "check pr" [ { test } ] | par-each { |task| $files | do $task } # TODO: buffer output } - - test-stdlib-candidate -} - -export def test-stdlib-candidate [] { - use stdlib-candidate/testing.nu - testing run-tests --allow-no-tests --path stdlib-candidate } # View subcommands. @@ -78,14 +71,13 @@ export def "lint ide-check" []: path -> int { let file = $in let stub = $env.STUB_IDE_CHECK? | default false | into bool const current_path = (path self) - let candidate_path = $current_path | path dirname | path join "stdlib-candidate" let diagnostics = if $stub { - do { nu -I $candidate_path --no-config-file --commands $"use '($file)'" } + do { nu --no-config-file --commands $"use '($file)'" } | complete | [[severity message]; [$in.exit_code $in.stderr]] | where severity != 0 } else { - nu -I $candidate_path --ide-check 10 $file + nu --ide-check 10 $file | $"[($in)]" | from nuon | where type == diagnostic