From d5785e1c9cc1c0a82e2a3403484ceae5bd3446cc Mon Sep 17 00:00:00 2001 From: peefy Date: Mon, 19 Feb 2024 21:17:32 +0800 Subject: [PATCH] fix: system modules Signed-off-by: peefy --- pkg/tools/list/utils.go | 4 ++-- testdata/import_builtin/entry/main.k | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/tools/list/utils.go b/pkg/tools/list/utils.go index 24eb4a04..7649f682 100644 --- a/pkg/tools/list/utils.go +++ b/pkg/tools/list/utils.go @@ -6,6 +6,7 @@ import "strings" var standardSystemModules = []string{ "collection", "net", + "manifests", "math", "datetime", "regex", @@ -13,9 +14,8 @@ var standardSystemModules = []string{ "json", "crypto", "base64", - "testing", "units", - "manifests", + "file", } func isBuiltinPkg(pkgpath string) bool { diff --git a/testdata/import_builtin/entry/main.k b/testdata/import_builtin/entry/main.k index 54b6696c..fe5d08b4 100644 --- a/testdata/import_builtin/entry/main.k +++ b/testdata/import_builtin/entry/main.k @@ -1,4 +1,3 @@ -import manifests import collection import net import math @@ -8,7 +7,6 @@ import yaml import json import crypto import base64 -import testing import units import manifests import sub