From 501098a858ce5f668e8327962d0ffe458556d7fb Mon Sep 17 00:00:00 2001 From: shy Date: Wed, 6 Sep 2023 19:19:11 +0800 Subject: [PATCH] fix some --- base/ctx/command.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/ctx/command.go b/base/ctx/command.go index 6cd373ec..7728d5c0 100644 --- a/base/ctx/command.go +++ b/base/ctx/command.go @@ -11,6 +11,7 @@ import ( "shylinux.com/x/icebergs/base/mdb" "shylinux.com/x/icebergs/base/nfs" kit "shylinux.com/x/toolkits" + "shylinux.com/x/toolkits/logs" ) func _command_list(m *ice.Message, name string) *ice.Message { @@ -161,6 +162,7 @@ func FileCmd(dir string) string { func AddFileCmd(dir, key string) { ice.Info.File[FileCmd(dir)] = key if ls := strings.SplitN(path.Join(kit.Slice(kit.Split(FileCmd(dir), nfs.PS), 1, 4)...), mdb.AT, 2); len(ls) > 1 { + logs.Println("add file cmd %v %v", "/require/usr/"+strings.Split(FileCmd(dir), mdb.AT+ls[1]+nfs.PS)[1], key) ice.Info.File["/require/usr/"+strings.Split(FileCmd(dir), mdb.AT+ls[1]+nfs.PS)[1]] = key ice.Info.Gomod[ls[0]] = ls[1] } @@ -172,6 +174,7 @@ func GetFileCmd(dir string) string { dir = path.Join(nfs.PS, ice.REQUIRE, strings.TrimPrefix(dir, ice.ISH_PLUGED)) } for _, dir := range []string{dir, path.Join(nfs.PS, ice.REQUIRE, ice.Info.Make.Module, dir), path.Join(nfs.PS, ice.REQUIRE, ice.Info.Make.Module, ice.SRC, dir)} { + logs.Println("get file cmd %v %v", FileCmd(dir), key) if cmd, ok := ice.Info.File[FileCmd(dir)]; ok { return cmd }