An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Keep Windows path guard fixtures portable https://github.com/siyuan-note/siyuan/issues/20290
Daniel3be1ddbc8e36
diff --git a/kernel/util/plugin_development_test.go b/kernel/util/plugin_development_test.goindex 82ec2543bf..ea682ca8c8 100644--- a/kernel/util/plugin_development_test.go+++ b/kernel/util/plugin_development_test.go@@ -8,6 +8,8 @@ import ("context""os""path/filepath"+ "runtime"+ "strings""testing")@@ -33,6 +35,10 @@ func TestPluginDevelopmentRawPathGuard(t *testing.T) {if !IsPluginDevelopmentRawPathForbidden(path, false) || !IsForbiddenAbsPath(path) {t.Errorf("protected path accepted: %s", rel)}+ // Windows 别名路径只验证词法保护,实体夹具仍使用合法路径。+ if runtime.GOOS == "windows" && (strings.Contains(rel, ":") || strings.Contains(rel, ". ")) {+ continue+ }if err := os.MkdirAll(filepath.Dir(path), 0700); err != nil {t.Fatal(err)}