An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 潜在的文件锁问题 https://github.com/siyuan-note/siyuan/issues/5191
Liang Ding85fdb0c4b6ca
diff --git a/kernel/go.mod b/kernel/go.modindex 4a104f531d..b8b1cff60d 100644--- a/kernel/go.mod+++ b/kernel/go.mod@@ -40,9 +40,9 @@ require (github.com/patrickmn/go-cache v2.1.0+incompatiblegithub.com/qiniu/go-sdk/v7 v7.13.0github.com/radovskyb/watcher v1.0.7- github.com/siyuan-note/dejavu v0.0.0-20220615074544-177b5b3df8bb+ github.com/siyuan-note/dejavu v0.0.0-20220615164826-201b6516adf3github.com/siyuan-note/encryption v0.0.0-20220612074546-f1dd94fe8676- github.com/siyuan-note/filelock v0.0.0-20220615153616-77ca4edd93f5+ github.com/siyuan-note/filelock v0.0.0-20220615164210-064676f342aagithub.com/vmihailenco/msgpack/v5 v5.3.5github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673golang.org/x/image v0.0.0-20220601225756-64ec528b34cddiff --git a/kernel/go.sum b/kernel/go.sumindex 2f701add27..05325641da 100644--- a/kernel/go.sum+++ b/kernel/go.sum@@ -419,12 +419,12 @@ github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749/go.mod h1:ZY1cvUeJgithub.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw=github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=-github.com/siyuan-note/dejavu v0.0.0-20220615074544-177b5b3df8bb h1:GZyX6WxQzW4LCPmJ1jcAZDPpIEAjFFwucbwCgR60kfU=-github.com/siyuan-note/dejavu v0.0.0-20220615074544-177b5b3df8bb/go.mod h1:Oa/Y6fvTUCg8h9/t6GNWXiu8T7aQri/ZvyDRygnlikI=+github.com/siyuan-note/dejavu v0.0.0-20220615164826-201b6516adf3 h1:pWPKLb4bpv5Cj8jErsuVKAvXqmudz+0XVfVWZjVxGJc=+github.com/siyuan-note/dejavu v0.0.0-20220615164826-201b6516adf3/go.mod h1:0XMLF+6gtwqr3ZJTk3nZmNbmQ4xNdaoP9RXKDR2ggkw=github.com/siyuan-note/encryption v0.0.0-20220612074546-f1dd94fe8676 h1:QB9TjJQFhXhZ6dAtPpY02DlzHAQm1C+WqZq6OadG8mI=github.com/siyuan-note/encryption v0.0.0-20220612074546-f1dd94fe8676/go.mod h1:H8fyqqAbp9XreANjeSbc72zEdFfKTXYN34tc1TjZwtw=-github.com/siyuan-note/filelock v0.0.0-20220615153616-77ca4edd93f5 h1:ZibEvKvBxD6nd3juzBitBkRu24eiPrNfG70qGzyt69w=-github.com/siyuan-note/filelock v0.0.0-20220615153616-77ca4edd93f5/go.mod h1:c4vwvWRrnfa75OXiO21K/76BFRJ4cFITKNoVs5lFdwc=+github.com/siyuan-note/filelock v0.0.0-20220615164210-064676f342aa h1:6bXZdsdA5EU1NUChdFV4EwH8nvYUis0H1TxwgadLM38=+github.com/siyuan-note/filelock v0.0.0-20220615164210-064676f342aa/go.mod h1:c4vwvWRrnfa75OXiO21K/76BFRJ4cFITKNoVs5lFdwc=github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I=diff --git a/kernel/model/repository.go b/kernel/model/repository.goindex 6f99b1d516..a327287bb5 100644--- a/kernel/model/repository.go+++ b/kernel/model/repository.go@@ -197,7 +197,6 @@ func IndexRepo(memo string) (err error) {WaitForWritingFiles()sql.WaitForWritingDatabase()filelock.ReleaseAllFileLocks()-_, err = repo.Index(memo, util.PushEndlessProgress, indexCallbacks)util.PushClearProgress()return