chore(collector): 下架死碼 arcrun-tray——但先把還活著的兩塊搬出來(D95 第一輪①)
`collector/cmd/arcrun-tray/`(fyne 版舊桌面殼)自 t193 換 Wails 後退役, t215 已明文記錄是死碼:三支打包腳本全部只裝 `arcrun-app`。 🔴 **但它不是「整個都死」——複驗發現兩塊還在被現役腳本用:** ① `assets/store/*.png`(12 顆 Store 圖示) ← `arcrun-app/build-msix.sh:75` 每次打 msix 都 `cp` 它們。 整個 `git rm` 掉 ⇒ 下一次打 msix 直接斷。 ② `build-msix.sh --setup`(在 Mac 上建 makemsix 的一次性流程) ← `arcrun-app/build-msix.sh:34` 的錯誤訊息就是叫人去跑它。 刪掉 ⇒ 新機器再也照不出 makemsix,而錯誤訊息會指向不存在的檔案。 ⇒ 先把這兩塊逐字搬進 `arcrun-app/`(不重寫),再刪整個目錄。 死碼下架最容易犯的錯就是「連還活著的那一塊一起丟掉」。 ⚠️ **`.git` 不會因此變小**:772 MB 裡的 524 MB 是那三顆二進位 (`ArcrunRAG-mac-unsigned.zip` 16 MB/`arcrun-collector` 15 MB/ `dist-mac/ArcrunRAG-v0.15.7.dmg`)**留在歷史裡**,`git rm` 只停止追蹤。 真正瘦身要重寫歷史(filter-repo)=第三輪,需 leo 親自拍板。 順手更新:`.gitignore` 的三條 tray 路徑(換成 arcrun-app 的 dist-msix)、 `landing/worker.js` 與 `docs/store-submission.md` 裡指向舊素材位置的路徑。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.8 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 538 B After Width: | Height: | Size: 538 B |
|
Before Width: | Height: | Size: 718 B After Width: | Height: | Size: 718 B |
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 834 B After Width: | Height: | Size: 834 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
@@ -7,17 +7,18 @@
|
||||
# 靠微軟自家開源跨平台工具 msix-packaging 的 `makemsix`。
|
||||
#
|
||||
# ⚠️ **不必自購簽章憑證**:送 Store 的 msix 不用簽——微軟過審後會用自己的憑證重簽。
|
||||
# 但**側載**(不走 Store)就必須自己簽。(官方說明見 ../arcrun-tray/docs/store-submission.md §2)
|
||||
# 但**側載**(不走 Store)就必須自己簽。
|
||||
#
|
||||
# 與舊 fyne 版(../arcrun-tray/build-msix.sh)的差別:
|
||||
# 舊版是單一 exe(collector 用 //go:embed 吃進去);
|
||||
# 沿革:舊 fyne 版(`../arcrun-tray/`)是單一 exe(collector 用 //go:embed 吃進去);
|
||||
# (2026-08-06 起改回一個 exe:collector 編進 Arcrun.exe,`--collector` 換身分。
|
||||
# 以下敘述保留為沿革)**Wails 版曾是兩個 exe**(見 supervise.go 的
|
||||
# os.Executable() 同層查找)⇒ 兩個都要進 msix root,缺一個就「裝了不會同步」。
|
||||
# 🔴 2026-08-18(D95 第一輪):`arcrun-tray/` 已整個下架,
|
||||
# 它的 `--setup`(建 makemsix)與 Store 圖示都已搬進本目錄——見下方 --setup 段與 assets/store/。
|
||||
#
|
||||
# 前置(一次就好):
|
||||
# brew install mingw-w64 cmake icu4c
|
||||
# bash ../arcrun-tray/build-msix.sh --setup # 建 makemsix(約 5-10 分鐘)
|
||||
# bash build-msix.sh --setup # 建 makemsix(約 5-10 分鐘)
|
||||
#
|
||||
# 用法:
|
||||
# IDENTITY_NAME=<Partner Center 的 Name> \
|
||||
@@ -29,9 +30,41 @@ cd "$(dirname "$0")"
|
||||
|
||||
MSIX_SDK_DIR="${MSIX_SDK_DIR:-$HOME/.cache/msix-packaging}"
|
||||
MAKEMSIX="$MSIX_SDK_DIR/.vs/bin/makemsix"
|
||||
|
||||
# ── --setup:建 makemsix(一次性)────────────────────────────────────────
|
||||
# 🔴 2026-08-18:**逐字取自 `arcrun-tray/build-msix.sh`**(512ea9f 之後未再改動),不是重寫。
|
||||
# 那個目錄是死碼要下架,但**這一段不是死的**——本腳本原本第 34 行就叫人去跑它。
|
||||
# 死碼下架時最容易犯的錯是「連還活著的那一塊一起丟掉」,所以先搬過來再刪。
|
||||
if [[ "${1:-}" == "--setup" ]]; then
|
||||
echo "① clone msix-packaging(微軟開源,匿名讀取,不碰 GitHub 寫入)"
|
||||
[[ -d "$MSIX_SDK_DIR" ]] || git clone --depth 1 https://github.com/microsoft/msix-packaging.git "$MSIX_SDK_DIR"
|
||||
|
||||
echo "② 修 C++ 標準:14 → 17"
|
||||
# 為什麼要修:這套 SDK 停在 2022 年、寫死 C++14,但 Homebrew 現在的 ICU 標頭
|
||||
# 用了 std::is_same_v 等 C++17 語法 ⇒ 不修必炸 'no template named is_same_v'。
|
||||
# **兩個檔都要改**——頂層改了還會被 xerces 子專案的設定蓋回去(實際踩過的坑)。
|
||||
for f in "$MSIX_SDK_DIR/CMakeLists.txt" "$MSIX_SDK_DIR/lib/xerces/CMakeLists.txt"; do
|
||||
sed -i.bak 's/set(CMAKE_CXX_STANDARD 14)/set(CMAKE_CXX_STANDARD 17)/' "$f"
|
||||
done
|
||||
|
||||
ICU_PREFIX="$(brew --prefix icu4c@77 2>/dev/null || brew --prefix icu4c)"
|
||||
[[ -f "$ICU_PREFIX/include/unicode/uset.h" ]] || { echo "❌ 找不到 ICU 標頭。先跑:brew install icu4c" >&2; exit 1; }
|
||||
|
||||
echo "③ cmake 配置(--pack 才會有打包功能,預設是關的)"
|
||||
mkdir -p "$MSIX_SDK_DIR/.vs" && cd "$MSIX_SDK_DIR/.vs"
|
||||
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DXML_PARSER=xerces -DSKIP_BUNDLES=off \
|
||||
-DUSE_VALIDATION_PARSER=on -DMSIX_PACK=on -DMSIX_SAMPLES=off -DMSIX_TESTS=off \
|
||||
-DCMAKE_OSX_ARCHITECTURES="$(uname -m)" -DCMAKE_TOOLCHAIN_FILE=../cmake/macos.cmake \
|
||||
-DUSE_MSIX_SDK_ZLIB=on -DMACOS=on -DCMAKE_CXX_FLAGS="-I$ICU_PREFIX/include" ..
|
||||
echo "④ 編(約 5-10 分鐘)"
|
||||
make -j"$(sysctl -n hw.ncpu)"
|
||||
echo "✅ makemsix 完成:$MAKEMSIX"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
[[ -x "$MAKEMSIX" ]] || {
|
||||
echo "❌ 找不到 makemsix:$MAKEMSIX"
|
||||
echo " 先跑一次:bash ../arcrun-tray/build-msix.sh --setup"
|
||||
echo " 先跑一次:bash build-msix.sh --setup"
|
||||
exit 1
|
||||
}
|
||||
|
||||
@@ -72,7 +105,8 @@ rm -rf "$OUT" && mkdir -p "$OUT/root/Assets"
|
||||
cp build/bin/arcrun-app.exe "$OUT/root/Arcrun.exe"
|
||||
|
||||
echo "② 複製 Store 圖示(沿用 CIS 版,不重產——sips 縮放會把方形拉扁)"
|
||||
cp ../arcrun-tray/assets/store/*.png "$OUT/root/Assets/"
|
||||
# 2026-08-18(D95 第一輪):素材從 `../arcrun-tray/assets/store/` 搬到本目錄底下。
|
||||
cp assets/store/*.png "$OUT/root/Assets/"
|
||||
|
||||
echo "③ 寫 AppxManifest.xml(能力宣告誠實且最小化)"
|
||||
cat > "$OUT/root/AppxManifest.xml" <<EOF
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
# Arcrun RAG 托盤殼(arcrun-tray)— 建置/簽章/TCC 交接
|
||||
|
||||
> CP-1 第 6 關 daemon 產品化。leo 2026-07-21 定框架=**fyne**(窮舉七案後推薦,見頂層
|
||||
> `journeys/daemon-tray-shell-options.md`)。**建置/簽章/公證/TCC 授權=leo/地端在真機做**(紅線②③)。
|
||||
|
||||
## 這顆殼做什麼
|
||||
|
||||
一個**選單列(Mac)/系統匣(Windows)icon**,讓不開 terminal 的人也能用:
|
||||
- 狀態一眼看(看守中 · 上次同步 HH:MM/啟動中/出錯自動重試/已暫停)
|
||||
- 選單:**選擇知識資料夾**(系統原生對話框)/打開資料夾/暫停·繼續看守
|
||||
- 關掉視窗=縮回背景續看守(不是結束)
|
||||
|
||||
它**看守** `arcrun-collector direct`(同綑執行檔),把它當背景常駐;崩了自動重起。
|
||||
|
||||
## 哪些已驗、哪些待真機驗(誠實界定,mindset §7)
|
||||
|
||||
| 部分 | 狀態 | 驗法 |
|
||||
|------|------|------|
|
||||
| **看守核心** `collector/supervisor`(子行程管理/狀態解析/崩潰重起/停止) | ✅ **sandbox `go test` 驗過**(純 stdlib,5 測全綠,含重起/停止/狀態解析) | `cd collector && go test ./supervisor/` |
|
||||
| collector 引擎(未動) | ✅ 既有測試無回歸 | `cd collector && go test ./...` |
|
||||
| **fyne GUI 本體**(本 main.go:tray icon/選單/原生選資料夾) | ⏳ **待真機 build**——fyne 需 CGo+GL/webview,無螢幕 sandbox 編不了 | 真機 `go mod tidy && fyne package` |
|
||||
| macOS **TCC 同意流** | ⏳ 待真 Mac 驗(沙箱測不到真 TCC 語意=假綠,故不盲寫) | 見下「TCC」 |
|
||||
|
||||
> ⚠️ **fyne API 細節(fyne.Do/SetSystemTrayMenu 刷新/Lifecycle)以首次真機 build 為準**——
|
||||
> 本檔按 fyne v2.5 API 寫,但未經編譯器。第一次 `go mod tidy && go build` 若有 API 出入,就地修。
|
||||
|
||||
## 建置(leo/地端,真機)
|
||||
|
||||
```bash
|
||||
cd collector/cmd/arcrun-tray
|
||||
go mod tidy # 拉 fyne 依賴(首次需網路)
|
||||
# 把 collector 執行檔一起放進 bundle(托盤靠同層 arcrun-collector)
|
||||
(cd ../.. && GOOS=darwin GOARCH=arm64 go build -o cmd/arcrun-tray/arcrun-collector .)
|
||||
# 打包 .app(Mac)/.exe(Win)
|
||||
go run fyne.io/fyne/v2/cmd/fyne@latest package -os darwin -icon icon.png -name "Arcrun RAG"
|
||||
# Windows:-os windows
|
||||
```
|
||||
> icon.png 待放(leo logo 進行中);Mac 選單列建議 **template 單色 icon**(自動深淺色)。
|
||||
|
||||
## 簽章/公證(Mac,leo/地端)
|
||||
|
||||
未簽章的 .app 會被 Gatekeeper 擋(右鍵開可繞,但非產品體驗)。正式版:
|
||||
```bash
|
||||
codesign --deep --force --options runtime --sign "Developer ID Application: <你>" "Arcrun.app"
|
||||
xcrun notarytool submit "Arcrun RAG.zip" --apple-id … --team-id … --wait
|
||||
xcrun stapler staple "Arcrun.app"
|
||||
```
|
||||
|
||||
## TCC(macOS,只有真 Mac 驗得到)
|
||||
|
||||
**預設 watch_folder = `~/ArcrunRAG`(本殼已這樣設)——刻意避開 `~/Documents`**:launchd/背景程序碰
|
||||
`~/Documents` 會被 TCC 擋(2026-07-19 實撞)。預設在非 TCC 禁區=**零授權即可用**。
|
||||
|
||||
用戶若堅持把資料夾設在 `~/Documents`/`~/Desktop`/`~/Downloads`:
|
||||
1. 首次讀取被拒 → 本殼應偵測並引導:**系統設定 → 隱私權與安全性 → 檔案與資料夾**(或完整磁碟取用權)勾選 Arcrun RAG。
|
||||
2. 這一步**必須在真 Mac 上驗**(跳不跳授權框、launchd 背景 vs GUI 前景差異)。sandbox 只能測到 `os.Open` 成不成,測不到真 TCC=假綠,故本輪不寫死。
|
||||
|
||||
## 安裝(用戶視角,最終形態)
|
||||
|
||||
下載 → 拖進「應用程式」→ 開啟 → 選一個資料夾 → 完成。cypher_url/namespace/api_key 由**安裝器**寫進
|
||||
`~/.arcrun-rag/config.json`(用戶不碰)。**現行 `docs/manual/product-install-guide.md` 是廢棄的
|
||||
Docker 六步,產品化時要重寫成這段。**
|
||||
|
Before Width: | Height: | Size: 412 B |
|
Before Width: | Height: | Size: 1.5 KiB |
@@ -1,46 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# build-dmg.sh — 把 Arcrun.app 打成標準 Mac DMG(t184 配套,leo 2026-08-04 核可)。
|
||||
#
|
||||
# 🎯 為什麼要 DMG(不是繼續發 zip):
|
||||
# zip 解出來就是一個 app,使用者**很容易就地雙擊執行**(下載資料夾、桌面)。
|
||||
# Oscar 就是這樣 ⇒ 他的 app 不在 /Applications ⇒ 自更新蓋錯地方(t184 真兇)。
|
||||
# DMG 裡放「app + Applications 資料夾捷徑」,開起來就是叫你把 app 拖進去的畫面
|
||||
# ⇒ **從源頭讓 app 待在該待的位置**,這是 Mac 的標準慣例,使用者一看就懂。
|
||||
#
|
||||
# ⚠️ DMG 治源頭、t184 是安全網,**兩個都要**:
|
||||
# 已經裝好舊版在別處的人(如 Oscar),不會因為改發 DMG 就自動變好。
|
||||
#
|
||||
# 用法:VERSION=v0.15.7 bash build-dmg.sh
|
||||
# 產物:dist-mac/ArcrunRAG-<version>.dmg
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
APP="Arcrun.app"
|
||||
[[ -d "$APP" ]] || { echo "❌ 找不到 $APP —— 先跑 build-mac.sh" >&2; exit 1; }
|
||||
|
||||
VERSION="${VERSION:-$(git describe --tags --always --dirty 2>/dev/null || echo dev)}"
|
||||
OUT_DIR="dist-mac"
|
||||
DMG="$OUT_DIR/ArcrunRAG-${VERSION}.dmg"
|
||||
STAGE="$(mktemp -d)/Arcrun RAG"
|
||||
|
||||
echo "🏷 版本:${VERSION}"
|
||||
mkdir -p "$OUT_DIR" "$STAGE"
|
||||
|
||||
echo "① 放 app 進暫存區"
|
||||
ditto "$APP" "$STAGE/$APP"
|
||||
|
||||
echo "② 放 Applications 捷徑(使用者拖曳的目標)"
|
||||
ln -s /Applications "$STAGE/Applications"
|
||||
|
||||
echo "③ 產 DMG"
|
||||
rm -f "$DMG"
|
||||
hdiutil create -volname "Arcrun" -srcfolder "$STAGE" -fs HFS+ -ov -format UDZO "$DMG" >/dev/null
|
||||
|
||||
rm -rf "$(dirname "$STAGE")"
|
||||
SIZE=$(ls -lh "$DMG" | awk '{print $5}')
|
||||
# 註:`$DMG(` 要寫成 `${DMG}(`——全形括號不是分隔符,bash 會把它吃進變數名。
|
||||
echo "✅ 完成:${DMG}(${SIZE})"
|
||||
echo
|
||||
echo "🔬 驗法:"
|
||||
echo " hdiutil attach '$DMG' → 應看到 Arcrun.app 與 Applications 捷徑並排"
|
||||
echo " 使用者把左邊拖到右邊即完成安裝(Mac 標準流程)"
|
||||
@@ -1,52 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# build-mac.sh — 打包 Arcrun RAG 托盤 app(daemon-beta t7/t8,真機執行)。
|
||||
#
|
||||
# leo 07-24 裁決:**選單列托盤 icon 是唯一指示器,不佔 Dock**——
|
||||
# fyne 預設 bundle 會出現 Dock icon,打包後把 LSUIElement=true 寫進 Info.plist 即隱。
|
||||
#
|
||||
# 用法(真機、需 Xcode CLT):
|
||||
# cd collector/cmd/arcrun-tray && bash build-mac.sh
|
||||
# 產物:Arcrun.app(含同綑 arcrun-collector)。簽章/公證另行(見 README)。
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# 版本編號(leo 2026-07-27:「daemon 要加上版本編號」)——沒版本號就只能靠 shasum 對帳,
|
||||
# 使用者回報問題時我們也不知道他跑的是哪一版(見 t63「修好的東西傳不到用戶」)。
|
||||
# 用法:VERSION=v0.9.0 bash build-mac.sh(未給則用 git 描述,再不行才 dev)
|
||||
VERSION="${VERSION:-$(git describe --tags --always --dirty 2>/dev/null || echo dev)}"
|
||||
BUILD_TIME="$(date '+%Y%m%d-%H%M')"
|
||||
LDFLAGS_VER="-X main.version=${VERSION} -X main.buildTime=${BUILD_TIME}"
|
||||
echo "🏷 版本:${VERSION}(build ${BUILD_TIME})"
|
||||
|
||||
echo "① 編 collector(同綑執行檔)"
|
||||
# t150(leo 07-29「我的和下載下來的會是同一個嗎」):collector **也要**注入版本,
|
||||
# 否則托盤顯示的是 tray 的版本、實際幹活的 collector 無版本可查(兩支獨立編譯)。
|
||||
( cd ../.. && go build -ldflags "-s -w ${LDFLAGS_VER}" -o "cmd/arcrun-tray/arcrun-collector" . )
|
||||
|
||||
echo "② fyne package"
|
||||
go run fyne.io/fyne/v2/cmd/fyne@latest package -os darwin -icon icon.png -name "Arcrun" -appID dev.arcrun.rag.tray
|
||||
|
||||
# ②b 用 -s -w 重編托盤覆蓋回 bundle(2026-07-27,t72/t63)。
|
||||
# 為什麼:`fyne package` 內部自己 go build,吃不到 -ldflags,產出含符號表與 DWARF 的胖執行檔。
|
||||
# 實測(本機):托盤 28.6MB → 21.3MB,**整包 zip 21.1MB → 14.65MB**
|
||||
# =**掉進 jsDelivr 單檔 20MB 上限內**(此前 Mac 版超標,jsDelivr 直接回
|
||||
# "File size exceeded the configured limit of 20 MB.",只能走 raw;Windows 版 13MB 無此問題)。
|
||||
# ⇒ 這一步讓 Mac 版也能走 CDN,且**免除拆檔工程**。功能指紋與簽章實測皆不受影響。
|
||||
echo "②b strip 重編托盤(-s -w;為了掉進 jsDelivr 20MB 線內)+注入版本號"
|
||||
go build -ldflags "-s -w ${LDFLAGS_VER}" -o "Arcrun.app/Contents/MacOS/arcrun-tray" .
|
||||
|
||||
APP="Arcrun.app"
|
||||
PLIST="$APP/Contents/Info.plist"
|
||||
|
||||
echo "③ LSUIElement=true(托盤唯一指示器,隱 Dock icon——leo 07-24 裁決)"
|
||||
/usr/libexec/PlistBuddy -c "Add :LSUIElement bool true" "$PLIST" 2>/dev/null \
|
||||
|| /usr/libexec/PlistBuddy -c "Set :LSUIElement true" "$PLIST"
|
||||
|
||||
echo "④ 同綑 collector 進 app bundle(托盤 collectorBinPath 找同層)"
|
||||
cp arcrun-collector "$APP/Contents/MacOS/arcrun-collector"
|
||||
|
||||
echo "⑤ ad-hoc 重簽(Apple Silicon:改過 plist/塞過檔必重簽,否則 launchd 拒開 error 162——07-24 真機實撞)"
|
||||
codesign --force --deep -s - "$APP"
|
||||
|
||||
echo "✅ 完成:$APP"
|
||||
echo "驗法:open '$APP' → 選單列出現 icon、Dock **不出現** icon → 選單列出資料夾清單"
|
||||
@@ -1,147 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# build-msix.sh — 把 Windows 托盤打包成 Microsoft Store 用的 .msix(rag-beta 關 8)。
|
||||
#
|
||||
# 🎯 重點:**在 Mac 上就打得出 msix**,不需要 Windows 機器、不需要 MakeAppx。
|
||||
# 靠的是微軟自家的開源跨平台工具 msix-packaging 的 `makemsix`。
|
||||
# (2026-07-31 本機實測通過:pack 出 17 MB msix,unpack 回讀 SHA 與原 exe 一致。)
|
||||
#
|
||||
# ⚠️ **不必自購簽章憑證**:送 Store 的 msix 不用簽——微軟過審後會用自己的憑證重簽。
|
||||
# (官方原文見 docs/store-submission.md §2)。但**側載**(不走 Store)就必須自己簽。
|
||||
#
|
||||
# 前置(一次就好):
|
||||
# brew install mingw-w64 cmake icu4c # 交叉編譯器 + 建置工具 + Xerces 需要的 ICU
|
||||
# bash build-msix.sh --setup # 建 makemsix(約 5-10 分鐘,只需跑一次)
|
||||
#
|
||||
# 用法:
|
||||
# bash build-msix.sh # 產出 dist-msix/ArcrunRAG.msix
|
||||
# 產物:dist-msix/ArcrunRAG.msix(**未簽章,這是對的**——Store 會重簽)
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
MSIX_SDK_DIR="${MSIX_SDK_DIR:-$HOME/.cache/msix-packaging}"
|
||||
MAKEMSIX="$MSIX_SDK_DIR/.vs/bin/makemsix"
|
||||
|
||||
# ── --setup:建 makemsix(一次性)────────────────────────────────────────
|
||||
if [[ "${1:-}" == "--setup" ]]; then
|
||||
echo "① clone msix-packaging(微軟開源,匿名讀取,不碰 GitHub 寫入)"
|
||||
[[ -d "$MSIX_SDK_DIR" ]] || git clone --depth 1 https://github.com/microsoft/msix-packaging.git "$MSIX_SDK_DIR"
|
||||
|
||||
echo "② 修 C++ 標準:14 → 17"
|
||||
# 為什麼要修:這套 SDK 停在 2022 年、寫死 C++14,但 Homebrew 現在的 ICU 標頭
|
||||
# 用了 std::is_same_v 等 C++17 語法 ⇒ 不修必炸 'no template named is_same_v'。
|
||||
# **兩個檔都要改**——頂層改了還會被 xerces 子專案的設定蓋回去(實際踩過的坑)。
|
||||
for f in "$MSIX_SDK_DIR/CMakeLists.txt" "$MSIX_SDK_DIR/lib/xerces/CMakeLists.txt"; do
|
||||
sed -i.bak 's/set(CMAKE_CXX_STANDARD 14)/set(CMAKE_CXX_STANDARD 17)/' "$f"
|
||||
done
|
||||
|
||||
ICU_PREFIX="$(brew --prefix icu4c@77 2>/dev/null || brew --prefix icu4c)"
|
||||
[[ -f "$ICU_PREFIX/include/unicode/uset.h" ]] || { echo "❌ 找不到 ICU 標頭。先跑:brew install icu4c" >&2; exit 1; }
|
||||
|
||||
echo "③ cmake 配置(--pack 才會有打包功能,預設是關的)"
|
||||
mkdir -p "$MSIX_SDK_DIR/.vs" && cd "$MSIX_SDK_DIR/.vs"
|
||||
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DXML_PARSER=xerces -DSKIP_BUNDLES=off \
|
||||
-DUSE_VALIDATION_PARSER=on -DMSIX_PACK=on -DMSIX_SAMPLES=off -DMSIX_TESTS=off \
|
||||
-DCMAKE_OSX_ARCHITECTURES="$(uname -m)" -DCMAKE_TOOLCHAIN_FILE=../cmake/macos.cmake \
|
||||
-DUSE_MSIX_SDK_ZLIB=on -DMACOS=on -DCMAKE_CXX_FLAGS="-I$ICU_PREFIX/include" ..
|
||||
echo "④ 編(約 5-10 分鐘)"
|
||||
make -j"$(sysctl -n hw.ncpu)"
|
||||
echo "✅ makemsix 完成:$MAKEMSIX"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
[[ -x "$MAKEMSIX" ]] || { echo "❌ 找不到 makemsix。先跑一次:bash build-msix.sh --setup" >&2; exit 1; }
|
||||
|
||||
# ── 版本號 ────────────────────────────────────────────────────────────────
|
||||
# ⚠️ Store 規定第四段固定 0(保留給 Store 用),前三段各 0-65535、第一段不可為 0。
|
||||
VERSION_RAW="${VERSION:-$(git describe --tags --always 2>/dev/null || echo 1.0.0)}"
|
||||
VERSION_NUM="$(echo "$VERSION_RAW" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1 || true)"
|
||||
[[ -n "$VERSION_NUM" ]] || VERSION_NUM="1.0.0"
|
||||
MSIX_VERSION="${VERSION_NUM}.0"
|
||||
# ⚠️ 變數後緊接全形括號必須用 ${} 包起來——全形字元會被 bash 當成變數名的一部分。
|
||||
echo "🏷 msix 版本:${MSIX_VERSION}(來源 ${VERSION_RAW})"
|
||||
|
||||
# Identity 三值——**必須與 Partner Center 完全一致**,故從環境變數帶入,預設佔位。
|
||||
IDENTITY_NAME="${IDENTITY_NAME:-PLACEHOLDER.ArcrunRAG}"
|
||||
PUBLISHER="${PUBLISHER:-CN=PLACEHOLDER}"
|
||||
PUBLISHER_DISPLAY="${PUBLISHER_DISPLAY:-PLACEHOLDER}"
|
||||
|
||||
echo "① 編 Windows exe(沿用既有腳本,單一 exe 內嵌 collector)"
|
||||
bash build-windows.sh >/dev/null
|
||||
[[ -f dist-windows/arcrun-tray.exe ]] || { echo "❌ exe 沒編出來" >&2; exit 1; }
|
||||
|
||||
OUT="dist-msix"
|
||||
rm -rf "$OUT" && mkdir -p "$OUT/root/Assets"
|
||||
cp dist-windows/arcrun-tray.exe "$OUT/root/"
|
||||
|
||||
echo "② 複製 Store 圖示(品牌素材,2026-07-31 換成 leo 的 CIS)"
|
||||
# 為什麼不用 `sips -z` 現產:`sips -z 150 310` 會**把方形 icon 橫向拉扁**成 310×150
|
||||
#(實測產出的 `a>>` 明顯變形)——CIS 的 Don't 明講「never skew or stretch」。
|
||||
# ⇒ 改成預先產好、隨 repo 版控的 assets/store/:
|
||||
# 方形磚=方形 icon 直接等比縮;寬磚 310×150=**橫式 lockup**(arc >>run)置中於墨底。
|
||||
# 產生方式與規範見 assets/store/README.md(可重跑)。
|
||||
cp assets/store/*.png "$OUT/root/Assets/"
|
||||
|
||||
echo "③ 寫 AppxManifest.xml(能力宣告誠實且最小化)"
|
||||
cat > "$OUT/root/AppxManifest.xml" <<EOF
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Package
|
||||
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
||||
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
||||
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
|
||||
IgnorableNamespaces="uap rescap">
|
||||
<Identity Name="$IDENTITY_NAME" Publisher="$PUBLISHER" Version="$MSIX_VERSION" ProcessorArchitecture="x64" />
|
||||
<Properties>
|
||||
<DisplayName>Arcrun RAG</DisplayName>
|
||||
<PublisherDisplayName>$PUBLISHER_DISPLAY</PublisherDisplayName>
|
||||
<Logo>Assets\StoreLogo.png</Logo>
|
||||
</Properties>
|
||||
<Dependencies>
|
||||
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.22631.0" />
|
||||
</Dependencies>
|
||||
<Resources>
|
||||
<Resource Language="zh-TW" />
|
||||
<Resource Language="en-US" />
|
||||
</Resources>
|
||||
<Applications>
|
||||
<Application Id="ArcrunRAG" Executable="arcrun-tray.exe" EntryPoint="Windows.FullTrustApplication">
|
||||
<uap:VisualElements
|
||||
DisplayName="Arcrun RAG"
|
||||
Description="把你選的資料夾變成可以問問題的知識庫,檔案留在自己電腦裡。"
|
||||
BackgroundColor="#17181A"
|
||||
Square150x150Logo="Assets\Square150x150Logo.png"
|
||||
Square44x44Logo="Assets\Square44x44Logo.png">
|
||||
<uap:DefaultTile
|
||||
Wide310x150Logo="Assets\Wide310x150Logo.png"
|
||||
Square71x71Logo="Assets\Square71x71Logo.png"
|
||||
Square310x310Logo="Assets\Square310x310Logo.png" />
|
||||
</uap:VisualElements>
|
||||
</Application>
|
||||
</Applications>
|
||||
<Capabilities>
|
||||
<rescap:Capability Name="runFullTrust" />
|
||||
<Capability Name="internetClient" />
|
||||
<rescap:Capability Name="broadFileSystemAccess" />
|
||||
</Capabilities>
|
||||
</Package>
|
||||
EOF
|
||||
|
||||
echo "④ 打包 msix"
|
||||
"$MAKEMSIX" pack -d "$OUT/root" -p "$OUT/ArcrunRAG.msix" >/dev/null
|
||||
|
||||
echo "⑤ 回讀驗證(unpack 會驗 blockmap 雜湊,能過=結構合法)"
|
||||
"$MAKEMSIX" unpack -p "$OUT/ArcrunRAG.msix" -d "$OUT/verify" -ss >/dev/null
|
||||
a="$(shasum < dist-windows/arcrun-tray.exe)"; b="$(shasum < "$OUT/verify/arcrun-tray.exe")"
|
||||
[[ "$a" == "$b" ]] || { echo "❌ 回讀的 exe 與原檔不一致" >&2; exit 1; }
|
||||
rm -rf "$OUT/verify" "$OUT/root"
|
||||
|
||||
echo
|
||||
echo "✅ 完成:$OUT/ArcrunRAG.msix($(du -h "$OUT/ArcrunRAG.msix" | cut -f1),未簽章=送 Store 正確狀態)"
|
||||
if [[ "$IDENTITY_NAME" == PLACEHOLDER* ]]; then
|
||||
echo
|
||||
echo "⚠️ 現在是**佔位身分**,這顆還不能送審。leo 在 Partner Center 保留名稱後,照這樣重跑:"
|
||||
echo " IDENTITY_NAME='<Package/Identity Name>' PUBLISHER='<Publisher>' \\"
|
||||
echo " PUBLISHER_DISPLAY='<發行者顯示名稱>' bash build-msix.sh"
|
||||
echo " 三個值抄自 Partner Center →〔產品〕→〔產品管理〕→〔產品識別資料〕"
|
||||
fi
|
||||
echo
|
||||
echo "⛔ 這台機器驗不到、必須真 Windows 的部分:實際安裝、托盤 icon、選資料夾對話框。"
|
||||
@@ -1,71 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# build-windows.sh — 打包 Arcrun RAG 托盤(Windows 未簽章版,daemon-beta t72)。
|
||||
#
|
||||
# 🎯 這支腳本的重點:**在 Mac 上就能交叉編譯出 Windows 版**,不需要 Windows 機器、
|
||||
# 不需要 Docker、不需要 fyne-cross。條件只有一個——裝 mingw-w64。
|
||||
# (這推翻了先前「fyne GUI 編不了 CGo+GL → 歸屬真機」的假設;2026-07-27 本機實測通過。)
|
||||
#
|
||||
# t77-lite(2026-07-28):arcrun-collector.exe 用 //go:embed 吃進 tray,
|
||||
# 產物只剩一個 exe,瀏覽器不再多擋一個(leo:「如果只有 1 個,我還可以把 exe 改成 e_e
|
||||
# 讓朋友改回來,但現在這樣完全不行」)。
|
||||
#
|
||||
# 前置(一次就好):
|
||||
# brew install mingw-w64 # 提供 x86_64-w64-mingw32-gcc
|
||||
#
|
||||
# 用法:
|
||||
# cd collector/cmd/arcrun-tray && bash build-windows.sh
|
||||
# 產物:dist-windows/ArcrunRAG-win-unsigned.zip(只含 arcrun-tray.exe)
|
||||
#
|
||||
# ⚠️ 誠實界定:**本腳本只證明「編得出來」,沒證明「跑起來對」**。
|
||||
# 托盤 icon 會不會出現、選資料夾對話框、SmartScreen 實際攔截行為,
|
||||
# **只有真的在 Windows 上跑才驗得到**——那一步歸 leo/真機。
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# 版本編號(leo 2026-07-27:「daemon 要加上版本編號」)——與 build-mac.sh 同一套。
|
||||
# 沒版本號時只能靠 shasum 對帳,使用者根本做不到(見 daemon-beta tasks t63)。
|
||||
VERSION="${VERSION:-$(git describe --tags --always --dirty 2>/dev/null || echo dev)}"
|
||||
BUILD_TIME="$(date '+%Y%m%d-%H%M')"
|
||||
LDFLAGS_VER="-X main.version=${VERSION} -X main.buildTime=${BUILD_TIME}"
|
||||
echo "🏷 版本:${VERSION}(build ${BUILD_TIME})"
|
||||
|
||||
OUT="dist-windows"
|
||||
CC_WIN="${CC_WIN:-x86_64-w64-mingw32-gcc}"
|
||||
|
||||
echo "① 檢查交叉編譯器"
|
||||
if ! command -v "$CC_WIN" >/dev/null 2>&1; then
|
||||
echo "❌ 找不到 $CC_WIN。先跑:brew install mingw-w64" >&2
|
||||
exit 1
|
||||
fi
|
||||
echo " $($CC_WIN --version | head -1)"
|
||||
|
||||
rm -rf "$OUT" && mkdir -p "$OUT"
|
||||
|
||||
echo "② 編 collector.exe 到本目錄(供 //go:embed 吃進 tray)"
|
||||
( cd ../.. && CGO_ENABLED=0 GOOS=windows GOARCH=amd64 \
|
||||
# t150(leo 07-29):collector 也要注入版本,否則顯示的與實際跑的可能不同版。
|
||||
go build -ldflags "-s -w ${LDFLAGS_VER}" -o "cmd/arcrun-tray/arcrun-collector.exe" . )
|
||||
|
||||
echo "③ 編托盤 GUI(fyne=CGo+GL,走 mingw;collector.exe embed 進去成為單一 exe)"
|
||||
CGO_ENABLED=1 GOOS=windows GOARCH=amd64 CC="$CC_WIN" \
|
||||
go build -ldflags "-H windowsgui -s -w ${LDFLAGS_VER}" -o "$OUT/arcrun-tray.exe" .
|
||||
|
||||
echo "④ 打包 zip(單一 exe,瀏覽器下載只有一個)"
|
||||
( cd "$OUT" && zip -9 -q ArcrunRAG-win-unsigned.zip arcrun-tray.exe )
|
||||
|
||||
echo "⑤ 刪除本目錄臨時用的 collector.exe(已 embed 進 tray,不進版控)"
|
||||
rm -f arcrun-collector.exe
|
||||
|
||||
echo
|
||||
echo "✅ 完成:$OUT/ArcrunRAG-win-unsigned.zip"
|
||||
ls -lh "$OUT"/*.exe "$OUT"/*.zip | awk '{print " "$9" "$5}'
|
||||
echo
|
||||
echo "📏 體積基準(t77-lite embed 後 tray 吃進 collector,+~6.5 MB):"
|
||||
echo " arcrun-tray.exe ~30 MB(含內嵌 collector;未加 -s -w 是 ~47 MB)"
|
||||
echo " zip 單檔 ~14 MB(和舊版雙檔 zip 相近,同樣在 jsDelivr 20 MB 上限內)"
|
||||
echo
|
||||
echo "🔬 驗法(這台機器上驗得到的部分):"
|
||||
echo " file $OUT/arcrun-tray.exe → 應為 'PE32+ executable (GUI) x86-64, for MS Windows'"
|
||||
echo " unzip -l $OUT/ArcrunRAG-win-unsigned.zip → 只應有 arcrun-tray.exe 一個檔案"
|
||||
echo " grep -c 'PDF 打不開' $OUT/arcrun-tray.exe → 應輸出 1(collector 特徵字串在肚裡)"
|
||||
echo "⛔ 驗不到、必須真 Windows 機器的部分:托盤 icon 顯示/選資料夾對話框/SmartScreen 實際行為。"
|
||||
@@ -1,24 +0,0 @@
|
||||
//go:build darwin
|
||||
|
||||
// dock_darwin.go — 托盤唯一指示器(leo 07-24 裁決)的 macOS 實作。
|
||||
//
|
||||
// 真機實測(07-24 第三枚坑):Info.plist 的 LSUIElement=true 會被 fyne/glfw 啟動時
|
||||
// 強制的 Regular activation policy 蓋掉(lsappinfo 實測 ApplicationType=Foreground),
|
||||
// Dock icon 照樣出現。唯一可靠解=app 起來後 runtime 直接把 policy 切成 Accessory。
|
||||
package main
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -x objective-c
|
||||
#cgo LDFLAGS: -framework AppKit
|
||||
#import <AppKit/AppKit.h>
|
||||
static void arcrunHideDock(void) {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[NSApp setActivationPolicy:NSApplicationActivationPolicyAccessory];
|
||||
});
|
||||
}
|
||||
*/
|
||||
import "C"
|
||||
|
||||
// hideDockIcon 把 app 切成 Accessory(選單列有、Dock 無)。須在 NSApp 初始化後呼叫
|
||||
// (掛在 fyne Lifecycle SetOnStarted)。
|
||||
func hideDockIcon() { C.arcrunHideDock() }
|
||||
@@ -1,6 +0,0 @@
|
||||
//go:build !darwin
|
||||
|
||||
package main
|
||||
|
||||
// hideDockIcon 在非 macOS 平台是 no-op(Windows 系統匣本來就不佔工作列)。
|
||||
func hideDockIcon() {}
|
||||
@@ -1,5 +0,0 @@
|
||||
//go:build !windows
|
||||
|
||||
package main
|
||||
|
||||
func ensureEmbeddedCollector() (string, error) { return "", nil }
|
||||
@@ -1,34 +0,0 @@
|
||||
//go:build windows
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"crypto/sha256"
|
||||
_ "embed"
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
//go:embed arcrun-collector.exe
|
||||
var collectorExeBytes []byte
|
||||
|
||||
// ensureEmbeddedCollector 把內嵌的 collector.exe 解壓到 ~/.arcrun-rag/bin/。
|
||||
// 用 sha256 比對避免每次啟動都重寫磁碟;回傳可執行的絕對路徑。
|
||||
// t77-lite(leo 2026-07-28:「Windows 解開有 2 個 exe 被瀏覽器擋住;如果只有 1 個,
|
||||
// 我還可以把 exe 改成 e_e 讓朋友改回來」)
|
||||
func ensureEmbeddedCollector() (string, error) {
|
||||
dest := filepath.Join(appDir(), "bin", "arcrun-collector.exe")
|
||||
embedded := sha256.Sum256(collectorExeBytes)
|
||||
if existing, err := os.ReadFile(dest); err == nil {
|
||||
if sha256.Sum256(existing) == embedded {
|
||||
return dest, nil
|
||||
}
|
||||
}
|
||||
if err := os.MkdirAll(filepath.Dir(dest), 0o755); err != nil {
|
||||
return "", err
|
||||
}
|
||||
if err := os.WriteFile(dest, collectorExeBytes, 0o755); err != nil {
|
||||
return "", err
|
||||
}
|
||||
return dest, nil
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
// 獨立 module:把 fyne(CGo/GL)依賴與純 stdlib 的 collector module 隔開,
|
||||
// 讓 collector 模組維持 `go test ./...` 可在無 GUI 環境驗證。
|
||||
// 本 module 在 Mac/Windows 真機 build(leo/地端):`go mod tidy && fyne package`。
|
||||
module arcrun-rag/collector/cmd/arcrun-tray
|
||||
|
||||
go 1.25.0
|
||||
|
||||
require (
|
||||
arcrun-rag/collector v0.0.0
|
||||
fyne.io/fyne/v2 v2.5.3
|
||||
)
|
||||
|
||||
require (
|
||||
fyne.io/systray v1.11.0 // indirect
|
||||
github.com/BurntSushi/toml v1.4.0 // indirect
|
||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||
github.com/fredbi/uri v1.1.0 // indirect
|
||||
github.com/fsnotify/fsnotify v1.7.0 // indirect
|
||||
github.com/fyne-io/gl-js v0.0.0-20220119005834-d2da28d9ccfe // indirect
|
||||
github.com/fyne-io/glfw-js v0.0.0-20241126112943-313d8a0fe1d0 // indirect
|
||||
github.com/fyne-io/image v0.0.0-20220602074514-4956b0afb3d2 // indirect
|
||||
github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6 // indirect
|
||||
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20240506104042-037f3cc74f2a // indirect
|
||||
github.com/go-text/render v0.2.0 // indirect
|
||||
github.com/go-text/typesetting v0.2.0 // indirect
|
||||
github.com/godbus/dbus/v5 v5.1.0 // indirect
|
||||
github.com/gopherjs/gopherjs v1.17.2 // indirect
|
||||
github.com/jeandeaual/go-locale v0.0.0-20240223122105-ce5225dcaa49 // indirect
|
||||
github.com/jsummers/gobmp v0.0.0-20151104160322-e2ba15ffa76e // indirect
|
||||
github.com/nicksnyder/go-i18n/v2 v2.4.0 // indirect
|
||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||
github.com/rymdport/portal v0.3.0 // indirect
|
||||
github.com/srwiley/oksvg v0.0.0-20221011165216-be6e8873101c // indirect
|
||||
github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef // indirect
|
||||
github.com/stretchr/testify v1.8.4 // indirect
|
||||
github.com/yuin/goldmark v1.7.1 // indirect
|
||||
golang.org/x/image v0.18.0 // indirect
|
||||
golang.org/x/mobile v0.0.0-20231127183840-76ac6878050a // indirect
|
||||
golang.org/x/net v0.57.0 // indirect
|
||||
golang.org/x/sys v0.47.0 // indirect
|
||||
golang.org/x/text v0.40.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
||||
// 複用同 repo 的 supervisor 套件(純 stdlib)。
|
||||
replace arcrun-rag/collector => ../../
|
||||
@@ -1,656 +0,0 @@
|
||||
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
|
||||
cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU=
|
||||
cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
|
||||
cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc=
|
||||
cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0=
|
||||
cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To=
|
||||
cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4=
|
||||
cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M=
|
||||
cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc=
|
||||
cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk=
|
||||
cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs=
|
||||
cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc=
|
||||
cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY=
|
||||
cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI=
|
||||
cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk=
|
||||
cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg=
|
||||
cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8=
|
||||
cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0=
|
||||
cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
|
||||
cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
|
||||
cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc=
|
||||
cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg=
|
||||
cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc=
|
||||
cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ=
|
||||
cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
|
||||
cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk=
|
||||
cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk=
|
||||
cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
|
||||
cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw=
|
||||
cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA=
|
||||
cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU=
|
||||
cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
|
||||
cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos=
|
||||
cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk=
|
||||
cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
|
||||
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
|
||||
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
||||
fyne.io/fyne/v2 v2.5.3 h1:k6LjZx6EzRZhClsuzy6vucLZBstdH2USDGHSGWq8ly8=
|
||||
fyne.io/fyne/v2 v2.5.3/go.mod h1:0GOXKqyvNwk3DLmsFu9v0oYM0ZcD1ysGnlHCerKoAmo=
|
||||
fyne.io/systray v1.11.0 h1:D9HISlxSkx+jHSniMBR6fCFOUjk1x/OOOJLa9lJYAKg=
|
||||
fyne.io/systray v1.11.0/go.mod h1:RVwqP9nYMo7h5zViCBHri2FgjXF7H2cub7MAq4NSoLs=
|
||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0=
|
||||
github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
|
||||
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
||||
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
|
||||
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
|
||||
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
|
||||
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
|
||||
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
|
||||
github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM=
|
||||
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
|
||||
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
|
||||
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
|
||||
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
|
||||
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
|
||||
github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
|
||||
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
|
||||
github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
|
||||
github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
|
||||
github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po=
|
||||
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
|
||||
github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
|
||||
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
||||
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
|
||||
github.com/felixge/fgprof v0.9.3 h1:VvyZxILNuCiUCSXtPtYmmtGvb65nqXh2QFWc0Wpf2/g=
|
||||
github.com/felixge/fgprof v0.9.3/go.mod h1:RdbpDgzqYVh/T9fPELJyV7EYJuHB55UTEULNun8eiPw=
|
||||
github.com/fredbi/uri v1.1.0 h1:OqLpTXtyRg9ABReqvDGdJPqZUxs8cyBDOMXBbskCaB8=
|
||||
github.com/fredbi/uri v1.1.0/go.mod h1:aYTUoAXBOq7BLfVJ8GnKmfcuURosB1xyHDIfWeC/iW4=
|
||||
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
|
||||
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
|
||||
github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
|
||||
github.com/fyne-io/gl-js v0.0.0-20220119005834-d2da28d9ccfe h1:A/wiwvQ0CAjPkuJytaD+SsXkPU0asQ+guQEIg1BJGX4=
|
||||
github.com/fyne-io/gl-js v0.0.0-20220119005834-d2da28d9ccfe/go.mod h1:d4clgH0/GrRwWjRzJJQXxT/h1TyuNSfF/X64zb/3Ggg=
|
||||
github.com/fyne-io/glfw-js v0.0.0-20241126112943-313d8a0fe1d0 h1:/1YRWFv9bAWkoo3SuxpFfzpXH0D/bQnTjNXyF4ih7Os=
|
||||
github.com/fyne-io/glfw-js v0.0.0-20241126112943-313d8a0fe1d0/go.mod h1:gsGA2dotD4v0SR6PmPCYvS9JuOeMwAtmfvDE7mbYXMY=
|
||||
github.com/fyne-io/image v0.0.0-20220602074514-4956b0afb3d2 h1:hnLq+55b7Zh7/2IRzWCpiTcAvjv/P8ERF+N7+xXbZhk=
|
||||
github.com/fyne-io/image v0.0.0-20220602074514-4956b0afb3d2/go.mod h1:eO7W361vmlPOrykIg+Rsh1SZ3tQBaOsfzZhsIOb/Lm0=
|
||||
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
|
||||
github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6 h1:zDw5v7qm4yH7N8C8uWd+8Ii9rROdgWxQuGoJ9WDXxfk=
|
||||
github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6/go.mod h1:9YTyiznxEY1fVinfM7RvRcjRHbw2xLBJ3AAGIT0I4Nw=
|
||||
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
|
||||
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
|
||||
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
|
||||
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20240506104042-037f3cc74f2a h1:vxnBhFDDT+xzxf1jTJKMKZw3H0swfWk9RpWbBbDK5+0=
|
||||
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20240506104042-037f3cc74f2a/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
|
||||
github.com/go-text/render v0.2.0 h1:LBYoTmp5jYiJ4NPqDc2pz17MLmA3wHw1dZSVGcOdeAc=
|
||||
github.com/go-text/render v0.2.0/go.mod h1:CkiqfukRGKJA5vZZISkjSYrcdtgKQWRa2HIzvwNN5SU=
|
||||
github.com/go-text/typesetting v0.2.0 h1:fbzsgbmk04KiWtE+c3ZD4W2nmCRzBqrqQOvYlwAOdho=
|
||||
github.com/go-text/typesetting v0.2.0/go.mod h1:2+owI/sxa73XA581LAzVuEBZ3WEEV2pXeDswCH/3i1I=
|
||||
github.com/go-text/typesetting-utils v0.0.0-20240317173224-1986cbe96c66 h1:GUrm65PQPlhFSKjLPGOZNPNxLCybjzjYBzjfoBGaDUY=
|
||||
github.com/go-text/typesetting-utils v0.0.0-20240317173224-1986cbe96c66/go.mod h1:DDxDdQEnB70R8owOx3LVpEFvpMK9eeH1o2r0yZhFI9o=
|
||||
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
|
||||
github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk=
|
||||
github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
|
||||
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
||||
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||
github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||
github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
|
||||
github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||
github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||
github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||
github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
|
||||
github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8=
|
||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
|
||||
github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
|
||||
github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk=
|
||||
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
|
||||
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
|
||||
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
|
||||
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
|
||||
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
|
||||
github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
|
||||
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||
github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
|
||||
github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM=
|
||||
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
|
||||
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
|
||||
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
||||
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
|
||||
github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
|
||||
github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
|
||||
github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
||||
github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
||||
github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||
github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||
github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||
github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||
github.com/google/pprof v0.0.0-20211214055906-6f57359322fd h1:1FjCyPC+syAzJ5/2S8fqdZK1R22vvA0J7JZKcuOIQ7Y=
|
||||
github.com/google/pprof v0.0.0-20211214055906-6f57359322fd/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg=
|
||||
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
||||
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
|
||||
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
|
||||
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
|
||||
github.com/gopherjs/gopherjs v0.0.0-20211219123610-ec9572f70e60/go.mod h1:cz9oNYuRUWGdHmLF2IodMLkAhcPtXeULvcBNagUrxTI=
|
||||
github.com/gopherjs/gopherjs v1.17.2 h1:fQnZVsXk8uxXIStYb0N4bGk7jeyTalG/wsZjQ25dO0g=
|
||||
github.com/gopherjs/gopherjs v1.17.2/go.mod h1:pRRIvn/QzFLrKfvEz3qUuEhtE/zLCWfreZ6J5gM2i+k=
|
||||
github.com/goxjs/gl v0.0.0-20210104184919-e3fafc6f8f2a/go.mod h1:dy/f2gjY09hwVfIyATps4G2ai7/hLwLkc5TrPqONuXY=
|
||||
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
|
||||
github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q=
|
||||
github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8=
|
||||
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
||||
github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
|
||||
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
|
||||
github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
|
||||
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
|
||||
github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU=
|
||||
github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU=
|
||||
github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4=
|
||||
github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
||||
github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
||||
github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90=
|
||||
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
|
||||
github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
|
||||
github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
|
||||
github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
|
||||
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
|
||||
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
|
||||
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
|
||||
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
|
||||
github.com/jeandeaual/go-locale v0.0.0-20240223122105-ce5225dcaa49 h1:Po+wkNdMmN+Zj1tDsJQy7mJlPlwGNQd9JZoPjObagf8=
|
||||
github.com/jeandeaual/go-locale v0.0.0-20240223122105-ce5225dcaa49/go.mod h1:YiutDnxPRLk5DLUFj6Rw4pRBBURZY07GFr54NdV9mQg=
|
||||
github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
|
||||
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
|
||||
github.com/jsummers/gobmp v0.0.0-20151104160322-e2ba15ffa76e h1:LvL4XsI70QxOGHed6yhQtAU34Kx3Qq2wwBzGFKY8zKk=
|
||||
github.com/jsummers/gobmp v0.0.0-20151104160322-e2ba15ffa76e/go.mod h1:kLgvv7o6UM+0QSf0QjAse3wReFDsb9qbZJdfexWlrQw=
|
||||
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
|
||||
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
||||
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
||||
github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
|
||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
|
||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||
github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60=
|
||||
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
|
||||
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
|
||||
github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
|
||||
github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
|
||||
github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
|
||||
github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
|
||||
github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg=
|
||||
github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
|
||||
github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
||||
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
||||
github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
|
||||
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||
github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJEU3ofeGjhHklVoIGuVj85JJwZ6kWPaJwCIxgnFmo=
|
||||
github.com/neelance/sourcemap v0.0.0-20200213170602-2833bce08e4c/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM=
|
||||
github.com/nicksnyder/go-i18n/v2 v2.4.0 h1:3IcvPOAvnCKwNm0TB0dLDTuawWEj+ax/RERNC+diLMM=
|
||||
github.com/nicksnyder/go-i18n/v2 v2.4.0/go.mod h1:nxYSZE9M0bf3Y70gPQjN9ha7XNHX7gMc814+6wVyEI4=
|
||||
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
|
||||
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
|
||||
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
|
||||
github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
|
||||
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/profile v1.7.0 h1:hnbDkaNWPCLMO9wGLdBFTIZvzDrDfBM2072E1S9gJkA=
|
||||
github.com/pkg/profile v1.7.0/go.mod h1:8Uer0jas47ZQMJ7VD+OHknK4YDY07LPUC6dEvqDjvNo=
|
||||
github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
|
||||
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
|
||||
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
|
||||
github.com/rymdport/portal v0.3.0 h1:QRHcwKwx3kY5JTQcsVhmhC3TGqGQb9LFghVNUy8AdB8=
|
||||
github.com/rymdport/portal v0.3.0/go.mod h1:kFF4jslnJ8pD5uCi17brj/ODlfIidOxlgUDTO5ncnC4=
|
||||
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
|
||||
github.com/shurcooL/go v0.0.0-20200502201357-93f07166e636/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk=
|
||||
github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg=
|
||||
github.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/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=
|
||||
github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
|
||||
github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk=
|
||||
github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
|
||||
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns=
|
||||
github.com/srwiley/oksvg v0.0.0-20221011165216-be6e8873101c h1:km8GpoQut05eY3GiYWEedbTT0qnSxrCjsVbb7yKY1KE=
|
||||
github.com/srwiley/oksvg v0.0.0-20221011165216-be6e8873101c/go.mod h1:cNQ3dwVJtS5Hmnjxy6AgTPd0Inb3pW05ftPSX7NZO7Q=
|
||||
github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef h1:Ch6Q+AZUxDBCVqdkI8FSpFyZDtCVBc2VmejdNrm5rRQ=
|
||||
github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef/go.mod h1:nXTWP6+gD5+LUJ8krVhhoeHjvHTutPxMYl5SvkcnJNE=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
|
||||
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
|
||||
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
|
||||
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
|
||||
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
||||
github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
||||
github.com/yuin/goldmark v1.7.1 h1:3bajkSilaCbjdKVsKdZjZCLBNPL9pYzrCakKaf4U49U=
|
||||
github.com/yuin/goldmark v1.7.1/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E=
|
||||
go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs=
|
||||
go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g=
|
||||
go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ=
|
||||
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
|
||||
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
|
||||
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||
go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||
go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
|
||||
go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E=
|
||||
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
|
||||
go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo=
|
||||
golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
|
||||
golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56/go.mod h1:JhuoJpWY28nO4Vef9tZUw9qufEGTyX1+7lmHxV5q5G4=
|
||||
golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek=
|
||||
golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY=
|
||||
golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
||||
golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
||||
golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
||||
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
|
||||
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
|
||||
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
|
||||
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||
golang.org/x/image v0.18.0 h1:jGzIakQa/ZXI1I0Fxvaa9W7yP25TqT6cHIHn+6CqvSQ=
|
||||
golang.org/x/image v0.18.0/go.mod h1:4yyo5vMFQjVjUcVk4jEQcU9MGy/rulF5WvUILseCM2E=
|
||||
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
|
||||
golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs=
|
||||
golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
|
||||
golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
|
||||
golang.org/x/mobile v0.0.0-20211207041440-4e6c2922fdee/go.mod h1:pe2sM7Uk+2Su1y7u/6Z8KJ24D7lepUjFZbhFOrmDfuQ=
|
||||
golang.org/x/mobile v0.0.0-20231127183840-76ac6878050a h1:sYbmY3FwUWCBTodZL1S3JUuOvaW6kM2o+clDzzDNBWg=
|
||||
golang.org/x/mobile v0.0.0-20231127183840-76ac6878050a/go.mod h1:Ede7gF0KGoHlj822RtphAHK1jLdrcuRBZg0sF1Q+SPc=
|
||||
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
|
||||
golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
|
||||
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||
golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
|
||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||
golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc=
|
||||
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
||||
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
golang.org/x/net v0.57.0 h1:K5+3DljvIuDG9/Jv9rvyMywYNFCQ9RSUY6OOTTkT+tE=
|
||||
golang.org/x/net v0.57.0/go.mod h1:KpXc8iv+r3XplLAG/f7Jsf9RPszJzdR0f58q9vGOuEU=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
|
||||
golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.40.0 h1:Ub2Z6/xjgF1WrYQz2nuITOEegKFtiIy+rieRJ5lHZKs=
|
||||
golang.org/x/text v0.40.0/go.mod h1:hpnzDAfGV753zIKo+wk3u1bVKCGPbrnF7+7LBF/UHVY=
|
||||
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
||||
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||
golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||
golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
||||
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
||||
golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
||||
golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
|
||||
golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
|
||||
golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8=
|
||||
golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||
golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||
golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||
golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE=
|
||||
golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
|
||||
golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||
golang.org/x/tools v0.1.8-0.20211022200916-316ba0b74098/go.mod h1:LGqMHiF4EqQNHR1JncWGqT5BVaXmza+X+BDGol+dOxo=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
|
||||
google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
|
||||
google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
|
||||
google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
|
||||
google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
|
||||
google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
|
||||
google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
|
||||
google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||
google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||
google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||
google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||
google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||
google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
|
||||
google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
|
||||
google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM=
|
||||
google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc=
|
||||
google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg=
|
||||
google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE=
|
||||
google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8=
|
||||
google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU=
|
||||
google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94=
|
||||
google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8=
|
||||
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
||||
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||
google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||
google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
|
||||
google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
|
||||
google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
|
||||
google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
|
||||
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
||||
google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||
google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||
google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||
google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||
google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
||||
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
||||
google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
|
||||
google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA=
|
||||
google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U=
|
||||
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
|
||||
google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA=
|
||||
google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A=
|
||||
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
|
||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
|
||||
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
|
||||
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
||||
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
|
||||
google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||
google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||
google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60=
|
||||
google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=
|
||||
google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||
google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||
google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||
google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
|
||||
google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc=
|
||||
google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8=
|
||||
google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
|
||||
google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
|
||||
google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
|
||||
google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM=
|
||||
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
||||
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
||||
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
|
||||
google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
|
||||
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
|
||||
google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
|
||||
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
|
||||
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=
|
||||
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
|
||||
gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
|
||||
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
||||
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
|
||||
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
|
||||
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
|
||||
|
Before Width: | Height: | Size: 12 KiB |
@@ -1,639 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"arcrun-rag/collector/supervisor"
|
||||
)
|
||||
|
||||
// t26:暱稱 > email > 未設定(leo 07-24 拍板:CF 全程隱形,這條邏輯不該提到 cypher/CF)。
|
||||
func TestConnectionStatusLabel(t *testing.T) {
|
||||
cases := []struct {
|
||||
name string
|
||||
instanceName string
|
||||
email string
|
||||
want string
|
||||
}{
|
||||
{"暱稱優先於email", "我的書房", "leo21c@gmail.com", "連線中:我的書房"},
|
||||
{"無暱稱退回email", "", "leo21c@gmail.com", "連線中:leo21c@gmail.com"},
|
||||
{"兩者皆空顯示未設定", "", "", "連線中:未設定"},
|
||||
}
|
||||
for _, c := range cases {
|
||||
t.Run(c.name, func(t *testing.T) {
|
||||
got := connectionStatusLabel(c.instanceName, c.email)
|
||||
if got != c.want {
|
||||
t.Errorf("connectionStatusLabel(%q, %q) = %q, want %q", c.instanceName, c.email, got, c.want)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestShortCypherHost(t *testing.T) {
|
||||
cases := []struct {
|
||||
name string
|
||||
in string
|
||||
want string
|
||||
}{
|
||||
{"完整URL取host", "https://arcrun-cypher-executor.someacct.workers.dev/path", "arcrun-cypher-executor.someacct.workers.dev"},
|
||||
{"空字串回空字串", "", ""},
|
||||
{"無法解析出host則原樣回傳", "not-a-url", "not-a-url"},
|
||||
}
|
||||
for _, c := range cases {
|
||||
t.Run(c.name, func(t *testing.T) {
|
||||
got := shortCypherHost(c.in)
|
||||
if got != c.want {
|
||||
t.Errorf("shortCypherHost(%q) = %q, want %q", c.in, got, c.want)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// config 序列化含新欄(email/instance_name)——t26 施工面一驗收項。
|
||||
func TestDirectConfigJSONRoundTrip(t *testing.T) {
|
||||
c := &directConfig{
|
||||
CypherURL: "https://example.workers.dev",
|
||||
Namespace: "demo",
|
||||
Email: "leo21c@gmail.com",
|
||||
InstanceName: "我的書房",
|
||||
}
|
||||
data, err := json.Marshal(c)
|
||||
if err != nil {
|
||||
t.Fatalf("marshal 失敗:%v", err)
|
||||
}
|
||||
s := string(data)
|
||||
if !strings.Contains(s, `"email":"leo21c@gmail.com"`) {
|
||||
t.Errorf("序列化結果缺 email 欄:%s", s)
|
||||
}
|
||||
if !strings.Contains(s, `"instance_name":"我的書房"`) {
|
||||
t.Errorf("序列化結果缺 instance_name 欄:%s", s)
|
||||
}
|
||||
|
||||
var back directConfig
|
||||
if err := json.Unmarshal(data, &back); err != nil {
|
||||
t.Fatalf("unmarshal 失敗:%v", err)
|
||||
}
|
||||
if back.Email != c.Email || back.InstanceName != c.InstanceName {
|
||||
t.Errorf("round-trip 不一致:got email=%q instance_name=%q", back.Email, back.InstanceName)
|
||||
}
|
||||
}
|
||||
|
||||
// 暱稱空時 config JSON 不應寫出 instance_name 欄(omitempty;對齊面二 installer 端「空就不寫欄位」的約定)。
|
||||
func TestDirectConfigJSONOmitsEmptyInstanceName(t *testing.T) {
|
||||
c := &directConfig{
|
||||
CypherURL: "https://example.workers.dev",
|
||||
Namespace: "demo",
|
||||
Email: "leo21c@gmail.com",
|
||||
}
|
||||
data, err := json.Marshal(c)
|
||||
if err != nil {
|
||||
t.Fatalf("marshal 失敗:%v", err)
|
||||
}
|
||||
if strings.Contains(string(data), "instance_name") {
|
||||
t.Errorf("暱稱空時不該序列化出 instance_name 欄:%s", data)
|
||||
}
|
||||
}
|
||||
|
||||
// ── t86:instanceChanged ─────────────────────────────────────────────────────
|
||||
|
||||
func TestInstanceChanged(t *testing.T) {
|
||||
cases := []struct {
|
||||
name string
|
||||
oldURL string
|
||||
newURL string
|
||||
want bool
|
||||
}{
|
||||
{
|
||||
"同 host 同實例改密碼不觸發清空",
|
||||
"https://arcrun-cypher-executor.youlin.workers.dev",
|
||||
"https://arcrun-cypher-executor.youlin.workers.dev",
|
||||
false,
|
||||
},
|
||||
{
|
||||
"不同 host 換實例觸發清空",
|
||||
"https://arcrun-cypher-executor.youlin.workers.dev",
|
||||
"https://arcrun-cypher-executor.geek6688.workers.dev",
|
||||
true,
|
||||
},
|
||||
{
|
||||
"舊 URL 空(首次設定)不觸發清空",
|
||||
"",
|
||||
"https://arcrun-cypher-executor.geek6688.workers.dev",
|
||||
false,
|
||||
},
|
||||
{
|
||||
"新 URL 空(異常值)不觸發清空",
|
||||
"https://arcrun-cypher-executor.youlin.workers.dev",
|
||||
"",
|
||||
false,
|
||||
},
|
||||
}
|
||||
for _, c := range cases {
|
||||
t.Run(c.name, func(t *testing.T) {
|
||||
got := instanceChanged(c.oldURL, c.newURL)
|
||||
if got != c.want {
|
||||
t.Errorf("instanceChanged(%q, %q) = %v, want %v", c.oldURL, c.newURL, got, c.want)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// t86:換實例後 applyRemoteConfig 清空資料夾清單
|
||||
func TestApplyRemoteConfigClearsFoldersOnInstanceSwitch(t *testing.T) {
|
||||
cfg := &directConfig{
|
||||
CypherURL: "https://arcrun-cypher-executor.youlin.workers.dev",
|
||||
Namespace: "youlin",
|
||||
WatchFolder: "/Users/youlin/KnowledgeBase",
|
||||
WatchFolders: []string{"/Users/youlin/KnowledgeBase", "/Users/youlin/Finance"},
|
||||
}
|
||||
r := &daemonConfigResp{}
|
||||
r.Config.CypherURL = "https://arcrun-cypher-executor.geek6688.workers.dev"
|
||||
r.Config.Namespace = "geek6688"
|
||||
|
||||
switched := applyRemoteConfig(cfg, r)
|
||||
|
||||
if !switched {
|
||||
t.Error("換了不同 host 應回傳 switched=true")
|
||||
}
|
||||
if cfg.WatchFolder != "" {
|
||||
t.Errorf("換實例後 WatchFolder 應清空,got %q", cfg.WatchFolder)
|
||||
}
|
||||
if len(cfg.WatchFolders) != 0 {
|
||||
t.Errorf("換實例後 WatchFolders 應清空,got %v", cfg.WatchFolders)
|
||||
}
|
||||
}
|
||||
|
||||
// t86:同實例改密碼不清空資料夾清單
|
||||
func TestApplyRemoteConfigKeepsFoldersOnSameInstance(t *testing.T) {
|
||||
cfg := &directConfig{
|
||||
CypherURL: "https://arcrun-cypher-executor.youlin.workers.dev",
|
||||
Namespace: "youlin",
|
||||
WatchFolder: "/Users/youlin/KnowledgeBase",
|
||||
WatchFolders: []string{"/Users/youlin/KnowledgeBase"},
|
||||
}
|
||||
r := &daemonConfigResp{}
|
||||
r.Config.CypherURL = "https://arcrun-cypher-executor.youlin.workers.dev"
|
||||
r.Config.Namespace = "youlin"
|
||||
|
||||
switched := applyRemoteConfig(cfg, r)
|
||||
|
||||
if switched {
|
||||
t.Error("同 host 不應回傳 switched=true")
|
||||
}
|
||||
if cfg.WatchFolder == "" || len(cfg.WatchFolders) == 0 {
|
||||
t.Error("同實例不應清空資料夾清單")
|
||||
}
|
||||
}
|
||||
|
||||
// ── t91/t92:buildStatusLabel 與 syncStatusLabel 邏輯 ──────────────────────
|
||||
|
||||
// TestBuildStatusLabelNormal:看守中(無 extractor 設定)→ 正常「看守中」文案。
|
||||
func TestBuildStatusLabelNormal(t *testing.T) {
|
||||
s := supervisor.Status{State: supervisor.StateWatching}
|
||||
got := buildStatusLabel(s, traySyncStatus{ExtractorOK: true}, "")
|
||||
if !strings.HasPrefix(got, "看守中") {
|
||||
t.Errorf("got=%q,應以「看守中」開頭", got)
|
||||
}
|
||||
if strings.Contains(got, "萃取") {
|
||||
t.Errorf("無 extractor 時不應有萃取字眼,got=%q", got)
|
||||
}
|
||||
}
|
||||
|
||||
// TestBuildStatusLabelExtractorFail:extractor 預檢失敗 → 換成「⚠ 萃取引擎未就緒:」。
|
||||
func TestBuildStatusLabelExtractorFail(t *testing.T) {
|
||||
s := supervisor.Status{State: supervisor.StateWatching}
|
||||
sync := traySyncStatus{ExtractorOK: false, ExtractorError: "找不到 Claude 指令"}
|
||||
got := buildStatusLabel(s, sync, "claude")
|
||||
if !strings.HasPrefix(got, "⚠ 萃取引擎未就緒:") {
|
||||
t.Errorf("extractor 失敗時應顯示警告,got=%q", got)
|
||||
}
|
||||
if !strings.Contains(got, "找不到 Claude 指令") {
|
||||
t.Errorf("應包含錯誤原因,got=%q", got)
|
||||
}
|
||||
}
|
||||
|
||||
// TestBuildStatusLabelExtractorOKWithCount:extractor 就緒且有萃取成功數 → 追加「已萃 N 檔」。
|
||||
func TestBuildStatusLabelExtractorOKWithCount(t *testing.T) {
|
||||
s := supervisor.Status{State: supervisor.StateWatching}
|
||||
sync := traySyncStatus{ExtractorOK: true, ExtractedOK: 5}
|
||||
got := buildStatusLabel(s, sync, "claude")
|
||||
if !strings.Contains(got, "已萃 5 檔") {
|
||||
t.Errorf("should show 已萃 5 檔,got=%q", got)
|
||||
}
|
||||
}
|
||||
|
||||
// TestSyncNowSignalPath:syncNowSignalPath 回傳以 sync-now 結尾的路徑(t98)。
|
||||
// tray 寫這個路徑,collector 從 manifest 同目錄讀——路徑語意必須一致。
|
||||
func TestSyncNowSignalPath(t *testing.T) {
|
||||
p := syncNowSignalPath()
|
||||
if !strings.HasSuffix(p, "sync-now") {
|
||||
t.Errorf("syncNowSignalPath()=%q,應以 'sync-now' 結尾", p)
|
||||
}
|
||||
// 應該住在 appDir() 底下
|
||||
if !strings.HasPrefix(p, appDir()) {
|
||||
t.Errorf("syncNowSignalPath()=%q 應在 appDir()=%q 底下", p, appDir())
|
||||
}
|
||||
}
|
||||
|
||||
// ── t101:removeWatchFolder 刪除邏輯 ─────────────────────────────────────────
|
||||
|
||||
// TestRemoveWatchFolder_removesEntry:移除後 WatchFolders 不含該路徑,WatchFolder 同步更新。
|
||||
func TestRemoveWatchFolder_removesEntry(t *testing.T) {
|
||||
cfg := &directConfig{
|
||||
WatchFolder: "/a",
|
||||
WatchFolders: []string{"/a", "/b", "/c"},
|
||||
}
|
||||
removeWatchFolder(cfg, "/b")
|
||||
for _, f := range cfg.WatchFolders {
|
||||
if f == "/b" {
|
||||
t.Errorf("移除後 WatchFolders 仍含 /b:%v", cfg.WatchFolders)
|
||||
}
|
||||
}
|
||||
if cfg.WatchFolder == "/b" {
|
||||
t.Errorf("移除後 WatchFolder 不應是 /b")
|
||||
}
|
||||
// 移除中間項不影響剩餘項
|
||||
if len(cfg.WatchFolders) != 2 {
|
||||
t.Errorf("移除一項後應剩 2 項,got %d:%v", len(cfg.WatchFolders), cfg.WatchFolders)
|
||||
}
|
||||
}
|
||||
|
||||
// TestRemoveWatchFolder_idempotent:對不在清單中的路徑呼叫,清單保持不變(冪等)。
|
||||
func TestRemoveWatchFolder_idempotent(t *testing.T) {
|
||||
cfg := &directConfig{
|
||||
WatchFolder: "/a",
|
||||
WatchFolders: []string{"/a", "/b"},
|
||||
}
|
||||
removeWatchFolder(cfg, "/nonexistent")
|
||||
if len(cfg.WatchFolders) != 2 {
|
||||
t.Errorf("重複刪除不存在路徑後清單應不變,got %v", cfg.WatchFolders)
|
||||
}
|
||||
if cfg.WatchFolder != "/a" {
|
||||
t.Errorf("WatchFolder 不應改變,got %q", cfg.WatchFolder)
|
||||
}
|
||||
}
|
||||
|
||||
// TestDirectConfigPreservesClaudeBin:config JSON round-trip 保留 claude_bin 欄位(t92 回寫驗收)。
|
||||
func TestDirectConfigPreservesClaudeBin(t *testing.T) {
|
||||
c := &directConfig{
|
||||
CypherURL: "https://example.workers.dev",
|
||||
Namespace: "demo",
|
||||
ClaudeBin: "/opt/homebrew/bin/claude",
|
||||
}
|
||||
data, err := json.Marshal(c)
|
||||
if err != nil {
|
||||
t.Fatalf("marshal 失敗:%v", err)
|
||||
}
|
||||
if !strings.Contains(string(data), `"claude_bin":"/opt/homebrew/bin/claude"`) {
|
||||
t.Errorf("序列化結果缺 claude_bin 欄:%s", data)
|
||||
}
|
||||
var back directConfig
|
||||
if err := json.Unmarshal(data, &back); err != nil {
|
||||
t.Fatalf("unmarshal 失敗:%v", err)
|
||||
}
|
||||
if back.ClaudeBin != c.ClaudeBin {
|
||||
t.Errorf("round-trip 不一致:got %q, want %q", back.ClaudeBin, c.ClaudeBin)
|
||||
}
|
||||
}
|
||||
|
||||
// ── t104:多帳號同時看守 ──────────────────────────────────────────────────────────
|
||||
|
||||
// TestAddOrUpdateAccount_NewAccount:空 accounts → 加入新帳號。
|
||||
func TestAddOrUpdateAccount_NewAccount(t *testing.T) {
|
||||
cfg := &directConfig{}
|
||||
r := &daemonConfigResp{}
|
||||
r.Config.CypherURL = "https://instance1.workers.dev"
|
||||
r.Config.Namespace = "ns1"
|
||||
r.Config.Email = "user@a.com"
|
||||
r.Config.InstanceName = "Work"
|
||||
|
||||
isNew := addOrUpdateAccount(cfg, r)
|
||||
if !isNew {
|
||||
t.Error("新帳號應回 true")
|
||||
}
|
||||
if len(cfg.Accounts) != 1 {
|
||||
t.Fatalf("應新增 1 個帳號,got %d", len(cfg.Accounts))
|
||||
}
|
||||
if cfg.Accounts[0].Email != "user@a.com" {
|
||||
t.Errorf("email 錯:%s", cfg.Accounts[0].Email)
|
||||
}
|
||||
if cfg.Accounts[0].InstanceName != "Work" {
|
||||
t.Errorf("instance_name 錯:%s", cfg.Accounts[0].InstanceName)
|
||||
}
|
||||
}
|
||||
|
||||
// TestAddOrUpdateAccount_SameHostUpdates:同 host → 更新連線資訊,WatchFolders 不清空。
|
||||
func TestAddOrUpdateAccount_SameHostUpdates(t *testing.T) {
|
||||
cfg := &directConfig{
|
||||
Accounts: []accountCfg{{
|
||||
CypherURL: "https://instance1.workers.dev",
|
||||
Namespace: "ns1",
|
||||
Email: "old@a.com",
|
||||
WatchFolders: []string{"/path/to/folder"},
|
||||
}},
|
||||
}
|
||||
r := &daemonConfigResp{}
|
||||
r.Config.CypherURL = "https://instance1.workers.dev"
|
||||
r.Config.Namespace = "ns1"
|
||||
r.Config.Email = "new@a.com"
|
||||
|
||||
isNew := addOrUpdateAccount(cfg, r)
|
||||
if isNew {
|
||||
t.Error("同 host 應回 false(更新,非新增)")
|
||||
}
|
||||
if len(cfg.Accounts) != 1 {
|
||||
t.Fatalf("不應新增帳號,got %d", len(cfg.Accounts))
|
||||
}
|
||||
if cfg.Accounts[0].Email != "new@a.com" {
|
||||
t.Errorf("email 未更新:%s", cfg.Accounts[0].Email)
|
||||
}
|
||||
if len(cfg.Accounts[0].WatchFolders) == 0 {
|
||||
t.Error("同 host 更新不應清空資料夾(t86 退役)")
|
||||
}
|
||||
}
|
||||
|
||||
// TestAddOrUpdateAccount_DifferentHostAdds:不同 host → 兩個帳號並存。
|
||||
func TestAddOrUpdateAccount_DifferentHostAdds(t *testing.T) {
|
||||
cfg := &directConfig{
|
||||
Accounts: []accountCfg{{
|
||||
CypherURL: "https://instance1.workers.dev",
|
||||
Namespace: "ns1",
|
||||
}},
|
||||
}
|
||||
r := &daemonConfigResp{}
|
||||
r.Config.CypherURL = "https://instance2.workers.dev"
|
||||
r.Config.Namespace = "ns2"
|
||||
|
||||
isNew := addOrUpdateAccount(cfg, r)
|
||||
if !isNew {
|
||||
t.Error("不同 host 應回 true(新增)")
|
||||
}
|
||||
if len(cfg.Accounts) != 2 {
|
||||
t.Fatalf("應有 2 個帳號,got %d", len(cfg.Accounts))
|
||||
}
|
||||
}
|
||||
|
||||
// TestRemoveAccountWatchFolder_CorrectAccount:刪帳號 A 的資料夾不影響帳號 B(t104+t101)。
|
||||
func TestRemoveAccountWatchFolder_CorrectAccount(t *testing.T) {
|
||||
cfg := &directConfig{
|
||||
Accounts: []accountCfg{
|
||||
{CypherURL: "https://a.workers.dev", WatchFolders: []string{"/folder1", "/folder2"}},
|
||||
{CypherURL: "https://b.workers.dev", WatchFolders: []string{"/folder3"}},
|
||||
},
|
||||
}
|
||||
removeAccountWatchFolder(cfg, 0, "/folder1")
|
||||
if len(cfg.Accounts[0].WatchFolders) != 1 {
|
||||
t.Fatalf("account[0] 應剩 1 個資料夾,got %v", cfg.Accounts[0].WatchFolders)
|
||||
}
|
||||
if cfg.Accounts[0].WatchFolders[0] != "/folder2" {
|
||||
t.Errorf("account[0] 剩餘應是 /folder2,got %s", cfg.Accounts[0].WatchFolders[0])
|
||||
}
|
||||
if len(cfg.Accounts[1].WatchFolders) != 1 || cfg.Accounts[1].WatchFolders[0] != "/folder3" {
|
||||
t.Errorf("account[1] 資料夾不應改變,got %v", cfg.Accounts[1].WatchFolders)
|
||||
}
|
||||
}
|
||||
|
||||
// TestAccountDisplayName:暱稱 > email > host(t26 延伸)。
|
||||
func TestAccountDisplayName(t *testing.T) {
|
||||
cases := []struct {
|
||||
acc accountCfg
|
||||
want string
|
||||
}{
|
||||
{accountCfg{InstanceName: "書房", Email: "a@b.com", CypherURL: "https://c.dev"}, "書房"},
|
||||
{accountCfg{Email: "a@b.com", CypherURL: "https://c.dev"}, "a@b.com"},
|
||||
{accountCfg{CypherURL: "https://arcrun-cypher-executor.acct.workers.dev"}, "arcrun-cypher-executor.acct.workers.dev"},
|
||||
}
|
||||
for _, c := range cases {
|
||||
got := accountDisplayName(c.acc)
|
||||
if got != c.want {
|
||||
t.Errorf("accountDisplayName(%+v) = %q, want %q", c.acc, got, c.want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TestDirectConfigFolders_MultiAccount:多帳號 Folders() 彙整所有帳號資料夾。
|
||||
func TestDirectConfigFolders_MultiAccount(t *testing.T) {
|
||||
cfg := &directConfig{
|
||||
Accounts: []accountCfg{
|
||||
{WatchFolders: []string{"/a", "/b"}},
|
||||
{WatchFolders: []string{"/c"}},
|
||||
},
|
||||
}
|
||||
got := cfg.Folders()
|
||||
want := []string{"/a", "/b", "/c"}
|
||||
if len(got) != len(want) {
|
||||
t.Fatalf("Folders() = %v, want %v", got, want)
|
||||
}
|
||||
for i := range want {
|
||||
if got[i] != want[i] {
|
||||
t.Errorf("Folders()[%d] = %q, want %q", i, got[i], want[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// t108:directConfig JSON round-trip 必須保留 GeminiAPIKey/LLMModel/CardIngestWF——
|
||||
// 這三欄是 t104 前缺失的;若托盤 loadConfig→saveConfig 吃掉它們,collector 讀到空值就走直送路。
|
||||
func TestDirectConfigGeminiFieldsPreserved(t *testing.T) {
|
||||
original := &directConfig{
|
||||
Extractor: "gemma",
|
||||
GeminiAPIKey: "AIzaSy-test-key",
|
||||
LLMModel: "gemma-4-31b-it",
|
||||
CardIngestWF: "rag_ingest_card",
|
||||
}
|
||||
data, err := json.Marshal(original)
|
||||
if err != nil {
|
||||
t.Fatalf("marshal 失敗:%v", err)
|
||||
}
|
||||
var back directConfig
|
||||
if err := json.Unmarshal(data, &back); err != nil {
|
||||
t.Fatalf("unmarshal 失敗:%v", err)
|
||||
}
|
||||
if back.GeminiAPIKey != original.GeminiAPIKey {
|
||||
t.Errorf("GeminiAPIKey 消失:got %q", back.GeminiAPIKey)
|
||||
}
|
||||
if back.LLMModel != original.LLMModel {
|
||||
t.Errorf("LLMModel 消失:got %q", back.LLMModel)
|
||||
}
|
||||
if back.CardIngestWF != original.CardIngestWF {
|
||||
t.Errorf("CardIngestWF 消失:got %q", back.CardIngestWF)
|
||||
}
|
||||
}
|
||||
|
||||
// t108:addOrUpdateAccount 後機器層 GeminiAPIKey 仍存在(遷移/新增帳號不吃掉機器層欄位)。
|
||||
func TestAddOrUpdateAccountPreservesMachineLayer(t *testing.T) {
|
||||
cfg := &directConfig{
|
||||
Extractor: "gemma",
|
||||
GeminiAPIKey: "AIzaSy-existing-key",
|
||||
LLMModel: "gemma-4-31b-it",
|
||||
CardIngestWF: "rag_ingest_card",
|
||||
}
|
||||
resp := &daemonConfigResp{Success: true}
|
||||
resp.Config.CypherURL = "https://new.workers.dev"
|
||||
resp.Config.Namespace = "newns"
|
||||
|
||||
addOrUpdateAccount(cfg, resp)
|
||||
if cfg.GeminiAPIKey != "AIzaSy-existing-key" {
|
||||
t.Errorf("GeminiAPIKey 被清空:got %q", cfg.GeminiAPIKey)
|
||||
}
|
||||
if cfg.LLMModel != "gemma-4-31b-it" {
|
||||
t.Errorf("LLMModel 被清空:got %q", cfg.LLMModel)
|
||||
}
|
||||
if cfg.CardIngestWF != "rag_ingest_card" {
|
||||
t.Errorf("CardIngestWF 被清空:got %q", cfg.CardIngestWF)
|
||||
}
|
||||
}
|
||||
|
||||
// ── t126:每帳號獨立引擎設定 ──────────────────────────────────────────────────
|
||||
|
||||
// t126①→t182 改版:accountEngineLabel 的判準是 **explicit(使用者主動選過沒有)**,
|
||||
// 不是 config 裡殘留什麼字串。
|
||||
//
|
||||
// 為什麼改(leo 08-04 實撞):更新到 v0.15.5 後托盤**兩個帳號都還顯示 Gemini**,
|
||||
// 因為他 config 的帳號層留著 extractor="gemma"、而 explicit 沒設。
|
||||
// t178 只把 `claude` 這一個殘留值導向 Gemini,殘留 `gemma` 一樣脫鉤 ⇒ t182 改成通則:
|
||||
// **沒主動選過就一律念「雲端 AI」(空字串),與 direct.go 的預設邏輯同一條判準。**
|
||||
func TestAccountEngineLabel(t *testing.T) {
|
||||
cases := []struct {
|
||||
name string
|
||||
acc accountCfg
|
||||
defaultEx string
|
||||
explicit bool
|
||||
want string
|
||||
}{
|
||||
// ── 沒主動選過(explicit=false):不管殘留什麼,一律不顯示(=走 workers-ai)──
|
||||
// 這一組就是 leo 實撞的情境:config 殘留 gemma/claude,但他從沒去「AI 設定…」選過。
|
||||
{"殘留gemma但沒選過→不顯示", accountCfg{Extractor: "gemma"}, "", false, ""},
|
||||
{"殘留claude但沒選過→不顯示", accountCfg{Extractor: "claude"}, "", false, ""},
|
||||
{"default殘留gemma但沒選過→不顯示", accountCfg{}, "gemma", false, ""},
|
||||
{"兩者皆空=新用戶→不顯示", accountCfg{}, "", false, ""},
|
||||
|
||||
// ── 主動選過(explicit=true):照實顯示 ──
|
||||
// Gemini 是選配(leo:「客戶說他要用 Gemini,但現在變成選配」)⇒ 選了就要標出來。
|
||||
{"主動選gemma→顯示 Gemini", accountCfg{Extractor: "gemma"}, "", true, " · Gemini"},
|
||||
// t178 保留:claude 也念 Gemini——direct.go 早把 claude 正規化成 gemma(t176)。
|
||||
// 若這則變回「· Claude」,代表標籤又和萃取實際走的路脫鉤了。
|
||||
{"主動選過但殘留claude→仍顯示 Gemini", accountCfg{Extractor: "claude"}, "", true, " · Gemini"},
|
||||
{"帳號空退回default-gemma", accountCfg{}, "gemma", true, " · Gemini"},
|
||||
{"帳號層優先於default", accountCfg{Extractor: "gemma"}, "claude", true, " · Gemini"},
|
||||
// t181:明確選 workers-ai 也不顯示(leo:「用 workers AI 就不顯示」)
|
||||
{"主動選 workers-ai→不顯示", accountCfg{Extractor: "workers-ai"}, "", true, ""},
|
||||
}
|
||||
for _, c := range cases {
|
||||
t.Run(c.name, func(t *testing.T) {
|
||||
got := accountEngineLabel(c.acc, c.defaultEx, c.explicit)
|
||||
if got != c.want {
|
||||
t.Errorf("accountEngineLabel(%+v, %q, explicit=%v) = %q, want %q",
|
||||
c.acc, c.defaultEx, c.explicit, got, c.want)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// t176(翻轉自 t126②):新帳號也一樣——只收連線欄位,雲端下發的 LLM 設定一律不落地。
|
||||
// 帳號層留白時,讀取端會繼承機器層(=使用者在「AI 設定…」填的那把)。
|
||||
func TestAddOrUpdateAccount_NewAccountIgnoresRemoteLLMSettings(t *testing.T) {
|
||||
cfg := &directConfig{
|
||||
Extractor: "gemma", // 機器層=使用者自己填的
|
||||
GeminiAPIKey: "machine-key",
|
||||
}
|
||||
resp := &daemonConfigResp{Success: true}
|
||||
resp.Config.CypherURL = "https://new.workers.dev"
|
||||
resp.Config.Namespace = "ns1"
|
||||
resp.Config.Extractor = "claude" // 雲端想下發 claude
|
||||
resp.Config.GeminiAPIKey = "cloud-key" // 以及別把金鑰
|
||||
resp.Config.LLMModel = "some-cloud-model" //
|
||||
|
||||
if isNew := addOrUpdateAccount(cfg, resp); !isNew {
|
||||
t.Error("應為新帳號")
|
||||
}
|
||||
if len(cfg.Accounts) == 0 {
|
||||
t.Fatal("應新增帳號")
|
||||
}
|
||||
// 連線欄位要寫進去(這條路徑本來的職責)
|
||||
if cfg.Accounts[0].Namespace != "ns1" || cfg.Accounts[0].CypherURL != "https://new.workers.dev" {
|
||||
t.Errorf("連線欄位應寫入,got ns=%q url=%q", cfg.Accounts[0].Namespace, cfg.Accounts[0].CypherURL)
|
||||
}
|
||||
// LLM 欄位一律留白=不吃雲端的
|
||||
if cfg.Accounts[0].Extractor != "" {
|
||||
t.Errorf("不該吃雲端下發的 extractor,got %q", cfg.Accounts[0].Extractor)
|
||||
}
|
||||
if cfg.Accounts[0].GeminiAPIKey != "" {
|
||||
t.Errorf("不該吃雲端下發的金鑰,got %q", cfg.Accounts[0].GeminiAPIKey)
|
||||
}
|
||||
if cfg.Accounts[0].LLMModel != "" {
|
||||
t.Errorf("不該吃雲端下發的模型,got %q", cfg.Accounts[0].LLMModel)
|
||||
}
|
||||
// 機器層(使用者自己填的)不受影響
|
||||
if cfg.Extractor != "gemma" || cfg.GeminiAPIKey != "machine-key" {
|
||||
t.Errorf("機器層不該被雲端動到,got extractor=%q key=%q", cfg.Extractor, cfg.GeminiAPIKey)
|
||||
}
|
||||
}
|
||||
|
||||
// t176(翻轉自 t126③):**雲端下發的 LLM 設定一律被忽略**。
|
||||
// leo 08-03:「地端要用什麼模型就在 daemon 上輸入 API Key 設置,而不是雲端設置後控制地端」。
|
||||
// 這條是回歸守衛——雲端 extractor_config 是全租戶共用一把 KV,任一處設了 claude
|
||||
// 會讓所有沒裝 Claude Code 的機器萃取全滅(awindhon 08-03 實證:零張卡)。
|
||||
func TestAddOrUpdateAccount_IgnoresRemoteLLMSettings(t *testing.T) {
|
||||
cfg := &directConfig{
|
||||
Extractor: "gemma", // 機器層=使用者自己在「AI 設定…」填的
|
||||
GeminiAPIKey: "my-own-key", //
|
||||
Accounts: []accountCfg{{
|
||||
CypherURL: "https://inst.workers.dev",
|
||||
Namespace: "ns1",
|
||||
Extractor: "gemma",
|
||||
GeminiAPIKey: "my-own-key",
|
||||
}},
|
||||
}
|
||||
// 雲端試圖下發 claude + 別把金鑰——全部都不該生效
|
||||
resp := &daemonConfigResp{Success: true}
|
||||
resp.Config.CypherURL = "https://inst.workers.dev"
|
||||
resp.Config.Namespace = "ns1"
|
||||
resp.Config.Extractor = "claude"
|
||||
resp.Config.GeminiAPIKey = "cloud-pushed-key"
|
||||
|
||||
if isNew := addOrUpdateAccount(cfg, resp); isNew {
|
||||
t.Error("同 host 應為更新(回 false)")
|
||||
}
|
||||
if cfg.Accounts[0].Extractor != "gemma" {
|
||||
t.Errorf("雲端下發的 extractor 不該覆蓋本地設定,got %q", cfg.Accounts[0].Extractor)
|
||||
}
|
||||
if cfg.Accounts[0].GeminiAPIKey != "my-own-key" {
|
||||
t.Errorf("雲端下發的金鑰不該覆蓋本地金鑰,got %q", cfg.Accounts[0].GeminiAPIKey)
|
||||
}
|
||||
if cfg.Extractor != "gemma" || cfg.GeminiAPIKey != "my-own-key" {
|
||||
t.Errorf("機器層不該被雲端動到,got extractor=%q key=%q", cfg.Extractor, cfg.GeminiAPIKey)
|
||||
}
|
||||
// 連線欄位仍要更新(這條路徑本來的職責)
|
||||
if cfg.Accounts[0].Namespace != "ns1" {
|
||||
t.Errorf("連線欄位仍應更新,got namespace=%q", cfg.Accounts[0].Namespace)
|
||||
}
|
||||
}
|
||||
|
||||
// 🔴 t177/08-02 迴歸守衛:版本比較不可退回字串比較(wiki 事故 D)。
|
||||
// 這個 bug 有**兩份**(本函式+collector/cloud_version.go)——
|
||||
// 改動版本號格式時,**兩份測試都要綠**。
|
||||
func TestTrayCloudVersionStale(t *testing.T) {
|
||||
cases := []struct {
|
||||
name string
|
||||
version string
|
||||
checkOK bool
|
||||
wantStale bool
|
||||
}{
|
||||
{"semver 最新版不該被判過舊", "1.4.1", true, false},
|
||||
{"semver 剛好達標", "1.4.0", true, false},
|
||||
{"semver 過舊要提示", "1.3.9", true, true},
|
||||
{"semver 1.10.0 比 1.9.0 新(防字串比較)", "1.10.0", true, false},
|
||||
{"舊格式過舊仍要判過舊(相容)", "2026-07-01+deadbee", true, true},
|
||||
{"舊格式達標", "2026-07-28+abc1234", true, false},
|
||||
{"空版本(老實例)", "", true, true},
|
||||
{"health 不可達→不判定(呼叫端另顯示查不到)", "", false, false},
|
||||
}
|
||||
for _, tc := range cases {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
if got := trayCloudVersionStale(tc.version, tc.checkOK); got != tc.wantStale {
|
||||
t.Errorf("trayCloudVersionStale(%q, %v) = %v,want %v", tc.version, tc.checkOK, got, tc.wantStale)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -1,278 +0,0 @@
|
||||
// mainwindow.go — Arcrun 主視窗(t192,issue #18)
|
||||
//
|
||||
// 🔴 leo 2026-08-04 的要求(逐條):
|
||||
// - 「daemon 設定項越來越多,**不可能統統塞在下拉選單**」
|
||||
// - 「參考 **Google Drive 設定畫面**:點擊 daemon 就開一個視窗,佔螢幕約 1/2」
|
||||
// - 「資料夾清單要**可捲動**——我自己每個 gitea 專案都要同步,那就是幾十個,根本塞不下」
|
||||
// - daemon 現在**沒有 onboarding**
|
||||
// - 要套 CIS 視覺
|
||||
// - 併入:狀態要顯示「萃取中/同步中」(issue #17,已在 supervisor/托盤那層做)
|
||||
//
|
||||
// 定位(leo 原話):
|
||||
//
|
||||
// 「Daemon 不只用來查看 RAG,它是 Arcrun 的**木馬屠城**……
|
||||
// Daemon 是 Arcrun 優於 n8n 之處。」
|
||||
// ⇒ 它是產品門面,不是附屬小工具。
|
||||
//
|
||||
// 設計原則(照 leo 立的「用戶好用、白癡化」):
|
||||
// - 一眼看到「現在在做什麼」——狀態列放最上面、大字、會動
|
||||
// - 資料夾清單用 widget.List(**虛擬捲動**,幾十個也不卡)
|
||||
// - 動作用白話:「加入資料夾」不是「新增 watch_folder」
|
||||
// - 沒連過帳號的人看到的是 onboarding,不是一堆空白面板
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"arcrun-rag/collector/supervisor"
|
||||
|
||||
"fyne.io/fyne/v2"
|
||||
"fyne.io/fyne/v2/container"
|
||||
"fyne.io/fyne/v2/dialog"
|
||||
"fyne.io/fyne/v2/theme"
|
||||
"fyne.io/fyne/v2/widget"
|
||||
)
|
||||
|
||||
// mainWindow 是常駐的應用視窗(不是每次開新的,避免多開)。
|
||||
type mainWindow struct {
|
||||
win fyne.Window
|
||||
app fyne.App
|
||||
|
||||
statusText *widget.Label // 最上方大字狀態(「同步中…」等)
|
||||
statusSub *widget.Label // 次要說明(上次同步時間、萃取計數)
|
||||
folderList *widget.List // 可捲動的資料夾清單
|
||||
rows []folderRow // 目前顯示的列(帳號標題 + 資料夾)
|
||||
|
||||
// 由 main.go 注入,避免這裡重寫一份邏輯
|
||||
cfg *directConfig
|
||||
sup *supervisor.Supervisor
|
||||
onAddAccount func()
|
||||
onAddFolder func(accIdx int)
|
||||
onDelFolder func(accIdx int, folder string)
|
||||
onAISettings func()
|
||||
onSyncNow func()
|
||||
onCheckUpdate func()
|
||||
reload func() *directConfig
|
||||
}
|
||||
|
||||
// folderRow 是清單裡的一列:帳號標題或其下的資料夾。
|
||||
// 用單一扁平清單(而非巢狀樹)才能用 widget.List 的虛擬捲動——
|
||||
// 幾十個資料夾時只算可見的那幾列,不會卡。
|
||||
type folderRow struct {
|
||||
isHeader bool
|
||||
accIdx int
|
||||
title string // 帳號名或資料夾路徑
|
||||
sub string // 次要說明(帳號:實例網址/資料夾:所屬庫)
|
||||
}
|
||||
|
||||
// newMainWindow 建主視窗。約佔一般筆電螢幕的一半(leo:「佔螢幕約 1/2」)。
|
||||
func newMainWindow(a fyne.App) *mainWindow {
|
||||
m := &mainWindow{app: a}
|
||||
m.win = a.NewWindow("Arcrun")
|
||||
m.win.Resize(fyne.NewSize(920, 620))
|
||||
m.win.SetCloseIntercept(func() { m.win.Hide() }) // 關窗=隱藏,daemon 續跑
|
||||
return m
|
||||
}
|
||||
|
||||
// build 組出整個畫面。必須在注入完各 callback 後呼叫。
|
||||
func (m *mainWindow) build() {
|
||||
// ── 上:狀態列(一眼看到「現在在做什麼」)──
|
||||
m.statusText = widget.NewLabel("啟動中…")
|
||||
m.statusText.TextStyle = fyne.TextStyle{Bold: true}
|
||||
m.statusSub = widget.NewLabel("")
|
||||
|
||||
syncBtn := widget.NewButtonWithIcon("立刻同步", theme.ViewRefreshIcon(), func() {
|
||||
if m.onSyncNow != nil {
|
||||
m.onSyncNow()
|
||||
}
|
||||
})
|
||||
syncBtn.Importance = widget.HighImportance
|
||||
|
||||
header := container.NewBorder(nil, nil, nil,
|
||||
container.NewHBox(syncBtn),
|
||||
container.NewVBox(m.statusText, m.statusSub),
|
||||
)
|
||||
|
||||
// ── 中:可捲動的資料夾清單(leo:「幾十個,根本塞不下」)──
|
||||
m.folderList = widget.NewList(
|
||||
func() int { return len(m.rows) },
|
||||
func() fyne.CanvasObject {
|
||||
title := widget.NewLabel("")
|
||||
sub := widget.NewLabel("")
|
||||
del := widget.NewButtonWithIcon("", theme.DeleteIcon(), nil)
|
||||
return container.NewBorder(nil, nil, nil, del, container.NewVBox(title, sub))
|
||||
},
|
||||
func(i widget.ListItemID, o fyne.CanvasObject) {
|
||||
if i < 0 || i >= len(m.rows) {
|
||||
return
|
||||
}
|
||||
r := m.rows[i]
|
||||
box := o.(*fyne.Container)
|
||||
inner := box.Objects[0].(*fyne.Container)
|
||||
title := inner.Objects[0].(*widget.Label)
|
||||
sub := inner.Objects[1].(*widget.Label)
|
||||
del := box.Objects[1].(*widget.Button)
|
||||
|
||||
title.SetText(r.title)
|
||||
sub.SetText(r.sub)
|
||||
if r.isHeader {
|
||||
title.TextStyle = fyne.TextStyle{Bold: true}
|
||||
del.Hide() // 帳號列沒有「移除資料夾」
|
||||
} else {
|
||||
title.TextStyle = fyne.TextStyle{}
|
||||
del.Show()
|
||||
row := r
|
||||
del.OnTapped = func() {
|
||||
dialog.ShowConfirm("移除這個資料夾?",
|
||||
"「"+row.title+"」不再自動同步。\n(已經上傳的知識卡不會被刪除)",
|
||||
func(ok bool) {
|
||||
if ok && m.onDelFolder != nil {
|
||||
m.onDelFolder(row.accIdx, row.title)
|
||||
}
|
||||
}, m.win)
|
||||
}
|
||||
}
|
||||
title.Refresh()
|
||||
sub.Refresh()
|
||||
},
|
||||
)
|
||||
|
||||
// ── 下:動作列(白話命名,不用系統術語)──
|
||||
actions := container.NewHBox(
|
||||
widget.NewButtonWithIcon("加入資料夾", theme.FolderNewIcon(), func() {
|
||||
// 只有一個帳號時直接加;多帳號要先選
|
||||
accIdx := m.pickAccount()
|
||||
if accIdx >= 0 && m.onAddFolder != nil {
|
||||
m.onAddFolder(accIdx)
|
||||
}
|
||||
}),
|
||||
widget.NewButtonWithIcon("新增知識庫帳號", theme.ContentAddIcon(), func() {
|
||||
if m.onAddAccount != nil {
|
||||
m.onAddAccount()
|
||||
}
|
||||
}),
|
||||
widget.NewButtonWithIcon("AI 設定", theme.SettingsIcon(), func() {
|
||||
if m.onAISettings != nil {
|
||||
m.onAISettings()
|
||||
}
|
||||
}),
|
||||
widget.NewButtonWithIcon("檢查更新", theme.DownloadIcon(), func() {
|
||||
if m.onCheckUpdate != nil {
|
||||
m.onCheckUpdate()
|
||||
}
|
||||
}),
|
||||
)
|
||||
footer := container.NewBorder(nil, nil, actions,
|
||||
widget.NewLabel("版本 "+versionLabel()))
|
||||
|
||||
m.win.SetContent(container.NewBorder(
|
||||
container.NewVBox(header, widget.NewSeparator()),
|
||||
container.NewVBox(widget.NewSeparator(), footer),
|
||||
nil, nil,
|
||||
m.folderList,
|
||||
))
|
||||
}
|
||||
|
||||
// pickAccount 決定要把資料夾加到哪個帳號。
|
||||
// 沒帳號 → 引導去連線(onboarding 的一環,不是丟一個錯誤給他)。
|
||||
func (m *mainWindow) pickAccount() int {
|
||||
if m.cfg == nil || len(m.cfg.Accounts) == 0 {
|
||||
dialog.ShowInformation("先連上你的知識庫",
|
||||
"還沒有任何知識庫帳號。\n請先按「新增知識庫帳號」,把這台電腦連上你的雲端知識庫。", m.win)
|
||||
return -1
|
||||
}
|
||||
return 0 // 單帳號直接用;多帳號的選擇 UI 待 issue #19 一起做
|
||||
}
|
||||
|
||||
// refresh 依現況重畫(狀態列 + 清單)。可從任何 goroutine 呼叫。
|
||||
func (m *mainWindow) refresh() {
|
||||
if m.reload != nil {
|
||||
if c := m.reload(); c != nil {
|
||||
m.cfg = c
|
||||
}
|
||||
}
|
||||
m.rebuildRows()
|
||||
|
||||
st := m.sup.Status()
|
||||
sync := loadAppSyncStatus()
|
||||
m.statusText.SetText(mainWindowStatusText(st))
|
||||
m.statusSub.SetText(mainWindowSubText(st, sync))
|
||||
m.folderList.Refresh()
|
||||
}
|
||||
|
||||
// rebuildRows 把 config 攤平成清單列(帳號標題 + 其下資料夾)。
|
||||
func (m *mainWindow) rebuildRows() {
|
||||
rows := []folderRow{}
|
||||
if m.cfg != nil {
|
||||
for ai, acc := range m.cfg.Accounts {
|
||||
rows = append(rows, folderRow{
|
||||
isHeader: true, accIdx: ai,
|
||||
title: accountDisplayName(acc),
|
||||
sub: shortCypherHost(acc.CypherURL),
|
||||
})
|
||||
for _, f := range acc.WatchFolders {
|
||||
rows = append(rows, folderRow{accIdx: ai, title: f, sub: "自動同步中"})
|
||||
}
|
||||
}
|
||||
}
|
||||
m.rows = rows
|
||||
}
|
||||
|
||||
// mainWindowStatusText 是最上方那行大字——**一眼看出現在在做什麼**(issue #17)。
|
||||
func mainWindowStatusText(s supervisor.Status) string {
|
||||
switch s.State {
|
||||
case supervisor.StateSyncing:
|
||||
return "同步中… 正在讀檔並整理成知識卡"
|
||||
case supervisor.StateWatching:
|
||||
return "看守中 · 資料夾有變動就會自動整理"
|
||||
case supervisor.StateStarting:
|
||||
return "啟動中…"
|
||||
case supervisor.StateError:
|
||||
return "暫時出錯,正在自動重試"
|
||||
default:
|
||||
return "尚未開始"
|
||||
}
|
||||
}
|
||||
|
||||
// mainWindowSubText 是狀態底下那行小字(時間、計數、錯誤)。
|
||||
func mainWindowSubText(s supervisor.Status, sync traySyncStatus) string {
|
||||
if sync.ExtractorError != "" && !sync.ExtractorOK {
|
||||
return "⚠ " + sync.ExtractorError
|
||||
}
|
||||
parts := []string{}
|
||||
if !s.LastRoundAt.IsZero() {
|
||||
parts = append(parts, "上次同步 "+s.LastRoundAt.Local().Format("15:04"))
|
||||
}
|
||||
if sync.ExtractedOK > 0 {
|
||||
parts = append(parts, fmt.Sprintf("已整理 %d 份", sync.ExtractedOK))
|
||||
}
|
||||
if sync.ExtractFailed > 0 {
|
||||
parts = append(parts, fmt.Sprintf("⚠ %d 份失敗", sync.ExtractFailed))
|
||||
}
|
||||
if len(parts) == 0 {
|
||||
return "還沒有同步紀錄"
|
||||
}
|
||||
out := parts[0]
|
||||
for _, p := range parts[1:] {
|
||||
out += " · " + p
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
// showAndRefresh 開窗(若已開就帶到前景)並立即更新一次。
|
||||
func (m *mainWindow) showAndRefresh() {
|
||||
m.refresh()
|
||||
m.win.Show()
|
||||
m.win.RequestFocus()
|
||||
}
|
||||
|
||||
// startAutoRefresh 每秒更新一次——**同步中的狀態要看得到在動**(issue #17)。
|
||||
// 視窗隱藏時不做事,不浪費資源。
|
||||
func (m *mainWindow) startAutoRefresh() {
|
||||
go func() {
|
||||
for range time.Tick(time.Second) {
|
||||
m.refresh()
|
||||
}
|
||||
}()
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
//go:build !windows
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
// processAlive 用 signal 0 探測:不真的送訊號,只做「這個 pid 現在存在嗎」的檢查。
|
||||
//
|
||||
// ⚠️ EPERM 也算活著:行程存在但屬於別的使用者(權限不足送訊號)。
|
||||
// 只有 ESRCH(查無此行程)才是真的死了。把 EPERM 當死會讓鎖被錯誤接管 ⇒ 又變成多開。
|
||||
func processAlive(pid int) bool {
|
||||
p, err := os.FindProcess(pid) // Unix 上這一步不會失敗,真正的判定在 Signal
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
err = p.Signal(syscall.Signal(0))
|
||||
if err == nil {
|
||||
return true
|
||||
}
|
||||
return errors.Is(err, syscall.EPERM)
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
//go:build windows
|
||||
|
||||
package main
|
||||
|
||||
import "golang.org/x/sys/windows"
|
||||
|
||||
// processAlive 開啟該 pid 的行程控制代碼並讀退出碼;
|
||||
// STILL_ACTIVE(259) 代表還在跑。Windows 沒有 signal 0 這種探測法。
|
||||
func processAlive(pid int) bool {
|
||||
const stillActive = 259
|
||||
h, err := windows.OpenProcess(windows.PROCESS_QUERY_LIMITED_INFORMATION, false, uint32(pid))
|
||||
if err != nil {
|
||||
return false // 開不起來=行程不存在(或已無權限,一律當作不存在,寧可放行不要擋住啟動)
|
||||
}
|
||||
defer windows.CloseHandle(h)
|
||||
var code uint32
|
||||
if err := windows.GetExitCodeProcess(h, &code); err != nil {
|
||||
return false
|
||||
}
|
||||
return code == stillActive
|
||||
}
|
||||
@@ -1,382 +0,0 @@
|
||||
package main
|
||||
|
||||
// selfupdate.go — 小幫手自我更新(t150,2026-07-29 leo 拍板)
|
||||
//
|
||||
// 為什麼一定要做(leo 原話):
|
||||
// 「小白不會動不動就刪除再裝新的」
|
||||
// 「如果有自動更新,就不用讓測試者一直重新下載,他去按一下檢查更新然後更新就好」
|
||||
// 「**我要他下載多幾次他就放棄了,所以抓到一個客戶後不能讓他有機會離開**」
|
||||
//
|
||||
// ⇒ 每一次「請你重新下載」都是流失點。修好的東西到不了用戶手上=等於沒修
|
||||
// (t149 實例:多帳號同步修好了,leo 手上仍是壞的,因為沒有更新機制)。
|
||||
//
|
||||
// 設計(leo 選 1+3):**背景自動更新為主,但一定要有提醒與手動「檢查更新」**——
|
||||
// daemon 常駐不重啟,完全自動才符合實際使用;但仍要看得見、按得動,
|
||||
// 否則使用者不知道發生什麼事(違反「視覺化明示原則」)。
|
||||
|
||||
import (
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
// manifestBase 是 bundle manifest(含 daemon 區塊)。與安裝器同源,不另開發佈通道。
|
||||
//
|
||||
// 🔴 t186(2026-08-04):**改打 raw.githubusercontent,不再用 jsDelivr `@main`。**
|
||||
//
|
||||
// ── 這推翻了 t150 二修(07-29 `142f1d5`)的判斷,理由如下 ──
|
||||
//
|
||||
// 那一輪的真兇是「jsDelivr 對 `@main` 回 7 天**檔案**快取」,解法是加 `?t=<unix>`。
|
||||
// **今天的病不同**:卡住的是「main → 哪個 commit」這層 **ref 解析**,
|
||||
// 而 `?t=` 與 purge **都清不掉 ref 解析**。08-04 實測三條路同時比對:
|
||||
// @main → 1.4.9 / v0.15.6 ← 卡住(age 持續增長、purge 回 finished 也沒用)
|
||||
// @<sha> → 1.4.10 / v0.15.7 ← 正確
|
||||
// raw → 1.4.10 / v0.15.7 ← 正確
|
||||
// `x-cache: MISS, MISS` 卻仍吐舊內容 ⇒ 坐實不是檔案快取,是 ref 解析被快取。
|
||||
// 同一天發作三次(win zip → mac zip → manifest)。zip 能靠「改帶版本號檔名」繞開,
|
||||
// **manifest.json 不行**——檔名寫死在這裡,換不了 ⇒ 只剩「換來源」一條路。
|
||||
//
|
||||
// ── D20 合規(t150 那輪否決 raw 的理由是誤判)──
|
||||
// 舊註解寫「raw 是實名讀 GitHub,受 D20 頻率閘管制」。
|
||||
// 但 D20 對實名的定義是「URL 帶 `token@`/`user:pass@`、或 clone 自己 private 殼」,
|
||||
// **daemon 這個請求不帶任何憑證=匿名讀**,
|
||||
// D20 明列「匿名讀(curl 公開 release…)✅ 放行,不計數」
|
||||
// (`system-dev/docs/2-architecture/decisions/D20-github-contact-protocol.md:22`)。
|
||||
// repo 是公開的,GitHub 不知道請求者是誰 ⇒ 零 flag 風險。
|
||||
//
|
||||
// 仍保留 `?t=<unix>`:擋瀏覽器/中間層快取,成本為零。
|
||||
const manifestBase = "https://raw.githubusercontent.com/youlinhsieh/arcrun-rag-bundles/main/manifest.json"
|
||||
|
||||
func manifestURLNoCache() string {
|
||||
return manifestBase + "?t=" + strconv.FormatInt(time.Now().Unix(), 10)
|
||||
}
|
||||
|
||||
// updateCheckInterval:背景檢查頻率。守「不輪詢」紅線——這是**單一 CDN 靜態檔**、
|
||||
// 每天一次、非 GitHub API,不構成 fan-out 或高頻寫入。
|
||||
const updateCheckInterval = 24 * time.Hour
|
||||
|
||||
type daemonRelease struct {
|
||||
Version string `json:"version"`
|
||||
Built string `json:"built"`
|
||||
Notes string `json:"notes"`
|
||||
Mac struct {
|
||||
File string `json:"file"`
|
||||
SHA256 string `json:"sha256"`
|
||||
} `json:"mac"`
|
||||
Win struct {
|
||||
File string `json:"file"`
|
||||
SHA256 string `json:"sha256"`
|
||||
} `json:"win"`
|
||||
}
|
||||
|
||||
type bundleManifest struct {
|
||||
Daemon *daemonRelease `json:"daemon,omitempty"`
|
||||
}
|
||||
|
||||
// updateState 是檢查結果(給選單讀)。
|
||||
type updateState struct {
|
||||
Available bool // 有新版
|
||||
Latest string // 最新版本號
|
||||
Notes string // 更新說明
|
||||
CheckedAt time.Time
|
||||
Err string // 檢查失敗原因(顯示用,不擋工作)
|
||||
}
|
||||
|
||||
var currentUpdate updateState
|
||||
|
||||
// fetchLatestRelease 抓 manifest 的 daemon 區塊。
|
||||
func fetchLatestRelease() (*daemonRelease, error) {
|
||||
cli := &http.Client{Timeout: 20 * time.Second}
|
||||
resp, err := cli.Get(manifestURLNoCache())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
if resp.StatusCode != 200 {
|
||||
return nil, fmt.Errorf("manifest HTTP %d", resp.StatusCode)
|
||||
}
|
||||
body, err := io.ReadAll(io.LimitReader(resp.Body, 4<<20))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
var m bundleManifest
|
||||
if err := json.Unmarshal(body, &m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if m.Daemon == nil || strings.TrimSpace(m.Daemon.Version) == "" {
|
||||
return nil, fmt.Errorf("manifest 沒有 daemon 版本欄位")
|
||||
}
|
||||
return m.Daemon, nil
|
||||
}
|
||||
|
||||
// newerThanCurrent 比較版本。dev(本機隨手編)一律不提示更新——
|
||||
// 開發中的機器被提示「有新版」只會造成困惑。
|
||||
func newerThanCurrent(latest string) bool {
|
||||
cur := strings.TrimSpace(version)
|
||||
if cur == "" || cur == "dev" {
|
||||
return false
|
||||
}
|
||||
return strings.TrimSpace(latest) != cur
|
||||
}
|
||||
|
||||
// checkForUpdate 執行一次檢查並更新 currentUpdate。
|
||||
func checkForUpdate() updateState {
|
||||
st := updateState{CheckedAt: time.Now()}
|
||||
rel, err := fetchLatestRelease()
|
||||
if err != nil {
|
||||
st.Err = err.Error()
|
||||
currentUpdate = st
|
||||
return st
|
||||
}
|
||||
st.Latest = rel.Version
|
||||
st.Notes = rel.Notes
|
||||
st.Available = newerThanCurrent(rel.Version)
|
||||
currentUpdate = st
|
||||
return st
|
||||
}
|
||||
|
||||
// downloadURLFor 回傳本平台的下載網址。
|
||||
func downloadURLFor(rel *daemonRelease) string {
|
||||
// t186:與 manifestBase 同一個理由改走 raw——`@main` 的 ref 解析會卡住,
|
||||
// 抓到舊 zip ⇒ sha256 校驗不符 ⇒ **更新永遠失敗且靜默**(正是 08-04 撞的病)。
|
||||
// portal 的下載按鈕本來就走 raw(Mac zip 曾大於 jsDelivr 20MB 單檔上限),
|
||||
// 這裡改過來後**兩條下載路徑同源**,不會再出現「下載頁對、檢查更新錯」的分歧。
|
||||
base := "https://raw.githubusercontent.com/youlinhsieh/arcrun-rag-bundles/main/"
|
||||
suffix := "?t=" + strconv.FormatInt(time.Now().Unix(), 10)
|
||||
if isWindows() {
|
||||
return base + rel.Win.File + suffix
|
||||
}
|
||||
return base + rel.Mac.File + suffix
|
||||
}
|
||||
|
||||
// updateStagePath 是下載暫存位置(~/.arcrun-rag/updates/)。
|
||||
func updateStagePath(name string) string {
|
||||
home, _ := os.UserHomeDir()
|
||||
dir := filepath.Join(home, ".arcrun-rag", "updates")
|
||||
_ = os.MkdirAll(dir, 0o755)
|
||||
return filepath.Join(dir, name)
|
||||
}
|
||||
|
||||
// ── 下載與套用(leo 07-29:「如果它都掛着,那準備好就告訴他重啓更新」)─────────
|
||||
//
|
||||
// 設計要點:daemon 常駐不重啟 ⇒ **不能中途替換自己正在跑的執行檔**。
|
||||
// 所以分兩段:① 背景默默下載+驗章,備妥後只改選單文案(不打擾)
|
||||
// ② 使用者按「重新啟動以完成更新」才真的替換並重啟。
|
||||
// ⇒ 使用者**完全不必再下載任何東西**(leo:「我要他下載多幾次他就放棄了」)。
|
||||
|
||||
// stagedUpdate 記錄「已下載備妥、等重啟套用」的版本。
|
||||
type stagedUpdate struct {
|
||||
Version string `json:"version"`
|
||||
ZipPath string `json:"zip_path"`
|
||||
Ready bool `json:"ready"`
|
||||
}
|
||||
|
||||
var currentStaged stagedUpdate
|
||||
|
||||
// stagedMarkerPath 讓「備妥狀態」跨重啟可見(重啟後才好知道要不要套用)。
|
||||
func stagedMarkerPath() string { return updateStagePath("staged.json") }
|
||||
|
||||
func saveStaged(s stagedUpdate) {
|
||||
b, err := json.Marshal(s)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_ = os.WriteFile(stagedMarkerPath(), b, 0o644)
|
||||
}
|
||||
|
||||
func loadStaged() stagedUpdate {
|
||||
var s stagedUpdate
|
||||
b, err := os.ReadFile(stagedMarkerPath())
|
||||
if err != nil {
|
||||
return s
|
||||
}
|
||||
_ = json.Unmarshal(b, &s)
|
||||
return s
|
||||
}
|
||||
|
||||
// downloadUpdate 下載新版 zip 到暫存區並驗 sha256。
|
||||
// 驗章失敗=寧可不更新(壞掉的 .app 會讓小幫手開不起來,比舊版更糟)。
|
||||
func downloadUpdate(rel *daemonRelease) (string, error) {
|
||||
url := downloadURLFor(rel)
|
||||
want := rel.Mac.SHA256
|
||||
if isWindows() {
|
||||
want = rel.Win.SHA256
|
||||
}
|
||||
cli := &http.Client{Timeout: 10 * time.Minute}
|
||||
resp, err := cli.Get(url)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
if resp.StatusCode != 200 {
|
||||
return "", fmt.Errorf("下載 HTTP %d", resp.StatusCode)
|
||||
}
|
||||
// 檔名要用「去掉查詢字串」的網址算,否則會變成 ...zip?t=1785... 這種怪檔名。
|
||||
cleanURL := strings.SplitN(url, "?", 2)[0]
|
||||
dst := updateStagePath(rel.Version + "-" + filepath.Base(cleanURL))
|
||||
f, err := os.Create(dst)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
h := sha256.New()
|
||||
if _, err := io.Copy(io.MultiWriter(f, h), resp.Body); err != nil {
|
||||
f.Close()
|
||||
return "", err
|
||||
}
|
||||
f.Close()
|
||||
got := hex.EncodeToString(h.Sum(nil))
|
||||
if want != "" && got != want {
|
||||
_ = os.Remove(dst)
|
||||
return "", fmt.Errorf("檔案校驗不符(可能下載不完整),已丟棄")
|
||||
}
|
||||
return dst, nil
|
||||
}
|
||||
|
||||
// prepareUpdateInBackground:檢查 → 有新版就下載備妥 → 記錄 staged。
|
||||
// 全程不打擾使用者;備妥後由選單顯示「重新啟動以完成更新」。
|
||||
func prepareUpdateInBackground() {
|
||||
st := checkForUpdate()
|
||||
if !st.Available {
|
||||
return
|
||||
}
|
||||
rel, err := fetchLatestRelease()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
zip, err := downloadUpdate(rel)
|
||||
if err != nil {
|
||||
currentUpdate.Err = "自動下載失敗:" + err.Error()
|
||||
return
|
||||
}
|
||||
currentStaged = stagedUpdate{Version: rel.Version, ZipPath: zip, Ready: true}
|
||||
saveStaged(currentStaged)
|
||||
}
|
||||
|
||||
// startUpdateWatcher 啟動背景更新檢查(每日一次;啟動後先等 1 分鐘避免搶開機資源)。
|
||||
func startUpdateWatcher() {
|
||||
go func() {
|
||||
time.Sleep(time.Minute)
|
||||
for {
|
||||
prepareUpdateInBackground()
|
||||
time.Sleep(updateCheckInterval)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
// applyStagedAndRestart 套用已備妥的更新並重啟。
|
||||
// 只有使用者按下「重新啟動以完成更新」才會走到這裡(不偷偷替換正在跑的自己)。
|
||||
//
|
||||
// 做法:解壓到暫存 → 用 ditto 覆蓋 /Applications/Arcrun.app → 重新 open → 結束自己。
|
||||
// 失敗時保留原版不動(寧可停在舊版,也不要弄出開不起來的 .app)。
|
||||
func applyStagedAndRestart() error {
|
||||
s := loadStaged()
|
||||
if !s.Ready || s.ZipPath == "" {
|
||||
return fmt.Errorf("沒有已備妥的更新")
|
||||
}
|
||||
if _, err := os.Stat(s.ZipPath); err != nil {
|
||||
return fmt.Errorf("更新檔不見了,請再檢查一次更新")
|
||||
}
|
||||
if isWindows() {
|
||||
// Windows 版走各自的安裝流程(本階段先開資料夾讓使用者取用)。
|
||||
return openPath(filepath.Dir(s.ZipPath))
|
||||
}
|
||||
work := updateStagePath("unpack")
|
||||
_ = os.RemoveAll(work)
|
||||
if err := os.MkdirAll(work, 0o755); err != nil {
|
||||
return err
|
||||
}
|
||||
if out, err := runCmd("ditto", "-x", "-k", s.ZipPath, work); err != nil {
|
||||
return fmt.Errorf("解壓失敗:%v %s", err, out)
|
||||
}
|
||||
newApp := filepath.Join(work, "Arcrun.app")
|
||||
if _, err := os.Stat(newApp); err != nil {
|
||||
return fmt.Errorf("更新檔內容不符(找不到 Arcrun.app)")
|
||||
}
|
||||
// 🔴 t184(leo 08-04 實撞:Oscar 按更新→顯示「新版 v0.15.6 已就緒」→重啟後**又跳回 v0.15.4**):
|
||||
//
|
||||
// 原本寫死 `/Applications/Arcrun.app`。但使用者**不一定把 app 放在 Applications**
|
||||
// (Oscar 就是從下載資料夾/桌面直接跑)。這時 `ditto` 會**自動建出**
|
||||
// `/Applications/Arcrun.app` 並**回傳成功**(實測 exit 0,不是報錯)
|
||||
// ⇒ 新版被寫到一個他根本沒在跑的路徑,他重開的還是原地那份舊的
|
||||
// ⇒ 畫面說「更新完成」、版本卻永遠是舊的=**靜默失敗**,最難查的那種。
|
||||
//
|
||||
// 改成更新**當前這個真的在跑的 app**(os.Executable() 往上推 .app):
|
||||
// 放哪都能更新,也不再無中生有一個 /Applications 的副本。
|
||||
target, err := runningAppBundlePath()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if out, err := runCmd("ditto", newApp, target); err != nil {
|
||||
return fmt.Errorf("覆蓋失敗(可能需要權限):%v %s", err, out)
|
||||
}
|
||||
// 清掉 staged 標記,避免重啟後又提示一次
|
||||
_ = os.Remove(stagedMarkerPath())
|
||||
currentStaged = stagedUpdate{}
|
||||
if out, err := runCmd("open", "-n", target); err != nil {
|
||||
return fmt.Errorf("重新啟動失敗:%v %s", err, out)
|
||||
}
|
||||
go func() { time.Sleep(2 * time.Second); os.Exit(0) }()
|
||||
return nil
|
||||
}
|
||||
|
||||
// runningAppBundlePath 回傳**現在正在跑的**那個 .app 路徑(t184)。
|
||||
//
|
||||
// 路徑長相:<某處>/Arcrun.app/Contents/MacOS/arcrun-tray
|
||||
// ⇒ 從執行檔往上三層就是 .app 本體。
|
||||
//
|
||||
// 為什麼不寫死 /Applications:使用者常常就地執行(下載資料夾/桌面/隨身碟),
|
||||
// 寫死會把新版蓋到他沒在跑的地方,而且 ditto 還會「成功」(見 applyStagedAndRestart 的註解)。
|
||||
// 找不到 .app 結構時**誠實回錯**,不要猜一個路徑亂蓋——蓋錯地方比不更新更難查。
|
||||
func runningAppBundlePath() (string, error) {
|
||||
exe, err := os.Executable()
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("找不到自己的執行檔位置:%w", err)
|
||||
}
|
||||
if resolved, err := filepath.EvalSymlinks(exe); err == nil {
|
||||
exe = resolved // 走過 symlink 才是真身
|
||||
}
|
||||
// .../Arcrun.app/Contents/MacOS/arcrun-tray → 上三層
|
||||
app := filepath.Dir(filepath.Dir(filepath.Dir(exe)))
|
||||
if filepath.Ext(app) != ".app" {
|
||||
return "", fmt.Errorf("這份 Arcrun RAG 不是從 .app 啟動的(%s)⇒ 請改用下載頁的 .app 版本再更新", exe)
|
||||
}
|
||||
return app, nil
|
||||
}
|
||||
|
||||
// updateMenuLabel 回傳選單該顯示什麼(三種狀態,使用者一眼看懂要做什麼)。
|
||||
// 回傳 ("", false) 代表不顯示這個項目。
|
||||
func updateMenuLabel() (string, bool) {
|
||||
if s := loadStaged(); s.Ready {
|
||||
return "🟢 新版 " + s.Version + " 已就緒 — 點此重新啟動完成更新", true
|
||||
}
|
||||
if currentUpdate.Available {
|
||||
return "🟠 有新版 " + currentUpdate.Latest + " — 正在背景下載…", true
|
||||
}
|
||||
return "", false
|
||||
}
|
||||
|
||||
// runCmd 執行外部命令並回傳合併輸出(本檔自用;package 內先前沒有同類 helper)。
|
||||
func runCmd(name string, args ...string) (string, error) {
|
||||
cmd := exec.Command(name, args...)
|
||||
out, err := cmd.CombinedOutput()
|
||||
return string(out), err
|
||||
}
|
||||
|
||||
// openPath 用系統預設方式開啟路徑(Windows 版更新暫以「開資料夾」收尾)。
|
||||
func openPath(p string) error {
|
||||
if isWindows() {
|
||||
_, err := runCmd("cmd", "/c", "start", "", p)
|
||||
return err
|
||||
}
|
||||
_, err := runCmd("open", p)
|
||||
return err
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
// singleinstance.go — 一台機器只跑一個托盤(t176,leo 08-03 回報「點選多次後托盤產生多個 icon」)。
|
||||
//
|
||||
// 為什麼要自己做:托盤程式**從來沒有任何** single-instance 機制(無 mutex/lockfile/pidfile)。
|
||||
// mac 上看起來不會重複開,是**借了 macOS Launch Services 對同 bundle ID .app 的內建去重**
|
||||
// (`open` 喚回既有行程),不是這支程式自己做的;Windows 的 .exe 沒有這層,
|
||||
// 於是每雙擊一次就真的多一個行程、多一個托盤 icon。
|
||||
//
|
||||
// 作法:在 ~/.arcrun-rag/tray.lock 寫入自己的 pid,啟動時檢查該 pid 是否還活著。
|
||||
// 選 pidfile 而非 OS 專屬鎖(Windows CreateMutex/unix flock)的理由:
|
||||
// 產物是 CGO_ENABLED=0 的純 stdlib 單一執行檔(見 build-*.sh),跨平台一份實作最不容易漂移。
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// trayLockPath 回傳鎖檔路徑(與 config/manifest 同一個 app 目錄)。可注入(測試用)。
|
||||
var trayLockPath = func() string { return filepath.Join(appDir(), "tray.lock") }
|
||||
|
||||
// acquireSingleInstance 嘗試取得「本機唯一托盤」的鎖。
|
||||
// 回傳 false 代表已經有另一個托盤在跑(呼叫端應該直接退出,不要再建第二個托盤 icon)。
|
||||
//
|
||||
// 誠實限制:pid 在行程結束後可能被作業系統重用,極端情況下會誤判成「還在跑」。
|
||||
// 這種情況下使用者刪掉 tray.lock 就能恢復,比「每點一次多一個 icon」好得多。
|
||||
func acquireSingleInstance() (ok bool, release func()) {
|
||||
path := trayLockPath()
|
||||
if data, err := os.ReadFile(path); err == nil {
|
||||
if pid, perr := strconv.Atoi(strings.TrimSpace(string(data))); perr == nil && pid > 0 && pid != os.Getpid() {
|
||||
if processAlive(pid) {
|
||||
return false, func() {}
|
||||
}
|
||||
// pid 已死=上次沒有正常結束(當機/強制關閉)留下的殘檔,直接接管。
|
||||
}
|
||||
}
|
||||
if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
|
||||
// 建不了目錄就不擋啟動——寧可容忍重複開,也不要讓使用者完全打不開。
|
||||
return true, func() {}
|
||||
}
|
||||
if err := os.WriteFile(path, []byte(fmt.Sprint(os.Getpid())), 0o644); err != nil {
|
||||
return true, func() {}
|
||||
}
|
||||
return true, func() { _ = os.Remove(path) }
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
// singleinstance_test.go — t176:一台機器只跑一個托盤(leo 08-03「點多次產生多個 icon」)。
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// withTempLock 把鎖檔導到暫存目錄,避免測試碰到使用者真正的 ~/.arcrun-rag。
|
||||
func withTempLock(t *testing.T) string {
|
||||
t.Helper()
|
||||
path := filepath.Join(t.TempDir(), "tray.lock")
|
||||
orig := trayLockPath
|
||||
trayLockPath = func() string { return path }
|
||||
t.Cleanup(func() { trayLockPath = orig })
|
||||
return path
|
||||
}
|
||||
|
||||
// 第一個實例拿得到鎖;release 後鎖檔消失。
|
||||
func TestSingleInstanceFirstAcquires(t *testing.T) {
|
||||
path := withTempLock(t)
|
||||
|
||||
ok, release := acquireSingleInstance()
|
||||
if !ok {
|
||||
t.Fatal("第一個實例應該拿得到鎖")
|
||||
}
|
||||
data, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
t.Fatalf("鎖檔應被建立:%v", err)
|
||||
}
|
||||
if got, _ := strconv.Atoi(string(data)); got != os.Getpid() {
|
||||
t.Errorf("鎖檔應寫入自己的 pid,got %q want %d", data, os.Getpid())
|
||||
}
|
||||
|
||||
release()
|
||||
if _, err := os.Stat(path); !os.IsNotExist(err) {
|
||||
t.Error("release 後鎖檔應被刪除(否則下次啟動要靠 pid 檢查兜底)")
|
||||
}
|
||||
}
|
||||
|
||||
// 鎖檔記著一個「還活著」的 pid(就用自己的父流程:本測試行程自己)→ 第二個實例被擋。
|
||||
// 這正是 leo 撞到的情境:點第二次不該再開一個托盤。
|
||||
func TestSingleInstanceSecondBlocked(t *testing.T) {
|
||||
path := withTempLock(t)
|
||||
// 寫入一個確定活著、且不等於自己的 pid:用 pid 1(init/launchd,任何系統上都在跑)。
|
||||
if err := os.WriteFile(path, []byte("1"), 0o644); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if ok, _ := acquireSingleInstance(); ok {
|
||||
t.Error("已有活著的實例時,第二個應該被擋下(不然就會多一個托盤 icon)")
|
||||
}
|
||||
}
|
||||
|
||||
// 殘留鎖檔(上次當機留下、pid 已死)不應永久卡死啟動——要能接管。
|
||||
func TestSingleInstanceStaleLockTakenOver(t *testing.T) {
|
||||
path := withTempLock(t)
|
||||
// 挑一個幾乎不可能存在的 pid:先開一個行程再等它結束太慢,直接用超大值。
|
||||
if err := os.WriteFile(path, []byte("4194303"), 0o644); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
ok, release := acquireSingleInstance()
|
||||
if !ok {
|
||||
t.Fatal("殘留鎖檔(pid 已死)應可接管,否則使用者永遠打不開")
|
||||
}
|
||||
defer release()
|
||||
data, _ := os.ReadFile(path)
|
||||
if got, _ := strconv.Atoi(string(data)); got != os.Getpid() {
|
||||
t.Errorf("接管後鎖檔應改寫成自己的 pid,got %q", data)
|
||||
}
|
||||
}
|
||||
|
||||
// 壞掉的鎖檔內容(非數字)不應擋住啟動。
|
||||
func TestSingleInstanceGarbageLock(t *testing.T) {
|
||||
path := withTempLock(t)
|
||||
if err := os.WriteFile(path, []byte("not-a-pid"), 0o644); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
ok, release := acquireSingleInstance()
|
||||
if !ok {
|
||||
t.Fatal("鎖檔內容壞掉時應放行(寧可容忍重複開,也不要讓人完全打不開)")
|
||||
}
|
||||
release()
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// t184:更新必須蓋在「正在跑的那個 .app」,不是寫死 /Applications。
|
||||
// leo 08-04 實撞:Oscar 從下載資料夾跑 → ditto 自動建 /Applications 副本並回成功
|
||||
// → 他重開仍是舊版,畫面卻說更新完成(靜默失敗)。
|
||||
func TestRunningAppBundlePathNotHardcoded(t *testing.T) {
|
||||
got, err := runningAppBundlePath()
|
||||
// 測試執行檔不在 .app 裡 → 應誠實回錯,**不可**回傳寫死的 /Applications 路徑
|
||||
if err == nil && strings.HasPrefix(got, "/Applications/") {
|
||||
t.Errorf("不該回寫死的 /Applications 路徑:%q", got)
|
||||
}
|
||||
if err == nil && !strings.HasSuffix(got, ".app") {
|
||||
t.Errorf("回傳的不是 .app:%q", got)
|
||||
}
|
||||
}
|
||||
|
||||
// 模擬真實 .app 結構:<dir>/Arcrun.app/Contents/MacOS/arcrun-tray
|
||||
// 驗證「往上三層」的推導正確——放在哪個目錄都要算得出來。
|
||||
func TestAppBundleDerivationFromExePath(t *testing.T) {
|
||||
for _, base := range []string{"/Applications", "/Users/oscar/Downloads", "/Volumes/USB"} {
|
||||
exe := filepath.Join(base, "Arcrun.app", "Contents", "MacOS", "arcrun-tray")
|
||||
app := filepath.Dir(filepath.Dir(filepath.Dir(exe)))
|
||||
want := filepath.Join(base, "Arcrun.app")
|
||||
if app != want {
|
||||
t.Errorf("從 %s 推導錯:got %q want %q", base, app, want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ditto 對不存在的目標會自動建目錄且回成功——這正是靜默失敗的成因,留測防回歸認知。
|
||||
func TestDittoCreatesMissingTargetSilently(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
src := filepath.Join(dir, "Fake.app", "Contents")
|
||||
if err := os.MkdirAll(src, 0o755); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := os.WriteFile(filepath.Join(src, "x"), []byte("hi"), 0o644); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
dst := filepath.Join(dir, "nowhere", "Fake.app")
|
||||
if _, err := runCmd("ditto", filepath.Join(dir, "Fake.app"), dst); err != nil {
|
||||
t.Skipf("此環境沒有 ditto:%v", err)
|
||||
}
|
||||
if _, err := os.Stat(dst); err != nil {
|
||||
t.Fatal("前提失效:ditto 應自動建出目標")
|
||||
}
|
||||
t.Log("確認:ditto 蓋到不存在的路徑會成功建出 ⇒ 寫死路徑必然靜默失敗")
|
||||
}
|
||||
@@ -1,73 +0,0 @@
|
||||
package main
|
||||
|
||||
import "testing"
|
||||
|
||||
// t190(leo 08-04 實撞):「我切到 Gemini 把內容刪掉,再切回 Workers AI,儲存,
|
||||
// 回去發現 Gemini Key 還在」——清空輸入框必須真的把金鑰刪掉。
|
||||
//
|
||||
// 這裡驗的是「儲存邏輯」的契約:金鑰**無條件以輸入框為準**,
|
||||
// 不因為選了哪個引擎而跳過寫入(舊版的病就是寫在 if useGemini 裡)。
|
||||
func TestAISettingsSaveClearsKeyWhenEmptied(t *testing.T) {
|
||||
// 模擬儲存邏輯(與 main.go 的 AI 設定 handler 同一套規則)
|
||||
apply := func(cfg *directConfig, useGemini bool, key string) {
|
||||
engine := "workers-ai"
|
||||
if useGemini {
|
||||
engine = "gemma"
|
||||
}
|
||||
cfg.GeminiAPIKey = key
|
||||
cfg.Extractor = engine
|
||||
cfg.ExtractorExplicit = true
|
||||
for i := range cfg.Accounts {
|
||||
cfg.Accounts[i].Extractor = engine
|
||||
cfg.Accounts[i].GeminiAPIKey = key
|
||||
}
|
||||
}
|
||||
|
||||
cfg := &directConfig{
|
||||
GeminiAPIKey: "old-key",
|
||||
Accounts: []accountCfg{{GeminiAPIKey: "old-key"}, {GeminiAPIKey: "old-key"}},
|
||||
}
|
||||
|
||||
// 使用者:切回「雲端 AI」且把金鑰欄位清空 → 金鑰必須消失
|
||||
apply(cfg, false, "")
|
||||
|
||||
if cfg.GeminiAPIKey != "" {
|
||||
t.Errorf("頂層金鑰沒被清掉:%q(leo 實撞的病)", cfg.GeminiAPIKey)
|
||||
}
|
||||
for i, a := range cfg.Accounts {
|
||||
if a.GeminiAPIKey != "" {
|
||||
t.Errorf("帳號[%d] 金鑰沒被清掉:%q", i, a.GeminiAPIKey)
|
||||
}
|
||||
}
|
||||
if cfg.Extractor != "workers-ai" {
|
||||
t.Errorf("引擎應為 workers-ai,got %q", cfg.Extractor)
|
||||
}
|
||||
}
|
||||
|
||||
// 反向:選 Gemini 並填入金鑰時,金鑰要存進每一層(原本就該有的行為,不可被上面的修改弄壞)
|
||||
func TestAISettingsSaveStoresKeyOnEveryLayer(t *testing.T) {
|
||||
apply := func(cfg *directConfig, useGemini bool, key string) {
|
||||
engine := "workers-ai"
|
||||
if useGemini {
|
||||
engine = "gemma"
|
||||
}
|
||||
cfg.GeminiAPIKey = key
|
||||
cfg.Extractor = engine
|
||||
cfg.ExtractorExplicit = true
|
||||
for i := range cfg.Accounts {
|
||||
cfg.Accounts[i].Extractor = engine
|
||||
cfg.Accounts[i].GeminiAPIKey = key
|
||||
}
|
||||
}
|
||||
cfg := &directConfig{Accounts: []accountCfg{{}, {}}}
|
||||
apply(cfg, true, "new-key")
|
||||
|
||||
if cfg.GeminiAPIKey != "new-key" || cfg.Extractor != "gemma" {
|
||||
t.Errorf("頂層沒寫對:key=%q engine=%q", cfg.GeminiAPIKey, cfg.Extractor)
|
||||
}
|
||||
for i, a := range cfg.Accounts {
|
||||
if a.GeminiAPIKey != "new-key" || a.Extractor != "gemma" {
|
||||
t.Errorf("帳號[%d] 沒寫對:key=%q engine=%q", i, a.GeminiAPIKey, a.Extractor)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,121 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"arcrun-rag/collector/supervisor"
|
||||
)
|
||||
|
||||
// t192/#17:正在跑就要**看得出來在跑**。
|
||||
// leo:「按『立刻同步』後很快就回到『看守中』,看起來好像就做完了,
|
||||
// 這時使用者一看沒做完啊,就覺得是 bug」。
|
||||
func TestMainWindowStatusShowsSyncing(t *testing.T) {
|
||||
cases := []struct {
|
||||
name string
|
||||
state supervisor.State
|
||||
want string
|
||||
}{
|
||||
{"同步中要講在做什麼", supervisor.StateSyncing, "同步中"},
|
||||
{"看守中", supervisor.StateWatching, "看守中"},
|
||||
{"啟動中", supervisor.StateStarting, "啟動中"},
|
||||
{"出錯要說會自動重試", supervisor.StateError, "重試"},
|
||||
}
|
||||
for _, c := range cases {
|
||||
t.Run(c.name, func(t *testing.T) {
|
||||
got := mainWindowStatusText(supervisor.Status{State: c.state})
|
||||
if !strings.Contains(got, c.want) {
|
||||
t.Errorf("state=%s → %q,應含 %q", c.state, got, c.want)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// 同步中的文案必須說明「正在做什麼」,不能只寫兩個字讓人乾等。
|
||||
func TestSyncingTextExplainsWhatItIsDoing(t *testing.T) {
|
||||
got := mainWindowStatusText(supervisor.Status{State: supervisor.StateSyncing})
|
||||
if !strings.Contains(got, "讀檔") && !strings.Contains(got, "知識卡") {
|
||||
t.Errorf("同步中應說明正在做什麼,got %q", got)
|
||||
}
|
||||
}
|
||||
|
||||
// 副標:有錯誤時**優先顯示錯誤**(不能被「上次同步 12:34」蓋掉)。
|
||||
func TestSubTextPrioritisesError(t *testing.T) {
|
||||
got := mainWindowSubText(
|
||||
supervisor.Status{LastRoundAt: time.Now()},
|
||||
traySyncStatus{ExtractorOK: false, ExtractorError: "還沒連上知識庫"},
|
||||
)
|
||||
if !strings.Contains(got, "還沒連上知識庫") {
|
||||
t.Errorf("有錯誤時應優先顯示,got %q", got)
|
||||
}
|
||||
}
|
||||
|
||||
// 副標:正常時要看得到「上次同步時間」與「已整理幾份」。
|
||||
func TestSubTextShowsProgress(t *testing.T) {
|
||||
got := mainWindowSubText(
|
||||
supervisor.Status{LastRoundAt: time.Date(2026, 8, 4, 21, 5, 0, 0, time.Local)},
|
||||
traySyncStatus{ExtractorOK: true, ExtractedOK: 3, ExtractFailed: 1},
|
||||
)
|
||||
for _, want := range []string{"21:05", "已整理 3", "1 份失敗"} {
|
||||
if !strings.Contains(got, want) {
|
||||
t.Errorf("副標應含 %q,got %q", want, got)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 沒同步過時不能顯示空白(空白=用戶不知道是壞了還是還沒開始)。
|
||||
func TestSubTextNeverEmpty(t *testing.T) {
|
||||
got := mainWindowSubText(supervisor.Status{}, traySyncStatus{ExtractorOK: true})
|
||||
if strings.TrimSpace(got) == "" {
|
||||
t.Error("副標不可空白——用戶會分不清是壞了還是還沒開始")
|
||||
}
|
||||
}
|
||||
|
||||
// t192/#18:資料夾清單攤平——帳號一列標題,其下每個資料夾各一列。
|
||||
// 用扁平清單才能吃 widget.List 的虛擬捲動(leo:「幾十個,根本塞不下」)。
|
||||
func TestRebuildRowsFlattensAccountsAndFolders(t *testing.T) {
|
||||
m := &mainWindow{cfg: &directConfig{Accounts: []accountCfg{
|
||||
{InstanceName: "geek6688", CypherURL: "https://a.workers.dev", WatchFolders: []string{"/p/one", "/p/two"}},
|
||||
{InstanceName: "youlin", CypherURL: "https://b.workers.dev", WatchFolders: []string{"/p/three"}},
|
||||
}}}
|
||||
m.rebuildRows()
|
||||
|
||||
if len(m.rows) != 5 { // 2 標題 + 3 資料夾
|
||||
t.Fatalf("應攤平成 5 列,got %d:%+v", len(m.rows), m.rows)
|
||||
}
|
||||
if !m.rows[0].isHeader || m.rows[0].title != "geek6688" {
|
||||
t.Errorf("第 0 列應是帳號標題 geek6688,got %+v", m.rows[0])
|
||||
}
|
||||
if m.rows[1].isHeader || m.rows[1].title != "/p/one" {
|
||||
t.Errorf("第 1 列應是資料夾 /p/one,got %+v", m.rows[1])
|
||||
}
|
||||
// 刪除要作用在正確帳號上(t101 踩過:刪錯帳號的資料夾)
|
||||
if m.rows[4].accIdx != 1 {
|
||||
t.Errorf("第 4 列(youlin 的資料夾)accIdx 應為 1,got %d", m.rows[4].accIdx)
|
||||
}
|
||||
}
|
||||
|
||||
// 幾十個資料夾也要能攤平(不是為了效能,是確保沒有隱藏上限)。
|
||||
func TestRebuildRowsHandlesManyFolders(t *testing.T) {
|
||||
folders := make([]string, 60)
|
||||
for i := range folders {
|
||||
folders[i] = "/gitea/project-" + string(rune('a'+i%26))
|
||||
}
|
||||
m := &mainWindow{cfg: &directConfig{Accounts: []accountCfg{
|
||||
{InstanceName: "leo", CypherURL: "https://x.workers.dev", WatchFolders: folders},
|
||||
}}}
|
||||
m.rebuildRows()
|
||||
if len(m.rows) != 61 {
|
||||
t.Errorf("60 個資料夾+1 標題應為 61 列,got %d", len(m.rows))
|
||||
}
|
||||
}
|
||||
|
||||
// 沒有任何帳號時清單是空的(走 onboarding,不是顯示壞掉的空面板)。
|
||||
func TestRebuildRowsEmptyWhenNoAccount(t *testing.T) {
|
||||
m := &mainWindow{cfg: &directConfig{}}
|
||||
m.rebuildRows()
|
||||
if len(m.rows) != 0 {
|
||||
t.Errorf("無帳號時應為空清單,got %d 列", len(m.rows))
|
||||
}
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
"runtime"
|
||||
|
||||
"fyne.io/fyne/v2"
|
||||
"fyne.io/fyne/v2/theme"
|
||||
)
|
||||
|
||||
// 托盤品牌 icon(2026-07-31,接 leo 的 CIS;結掉 main.go 舊 TODO「換品牌 icon」)。
|
||||
//
|
||||
// 兩平台要的東西不一樣,所以嵌兩份、開機時選一份:
|
||||
//
|
||||
// - macOS 選單列=**template icon**(純黑+alpha),系統依淺色/深色選單列自動反色。
|
||||
// 直接塞墨底彩色方塊在選單列會變成「一顆黑方塊」,非常醜——這是 CIS 也講明的:
|
||||
// ≤26px 的情境降級成 chevron,不用完整的 `a>>` 方塊(字在 22pt 下只剩 ~4px 高,糊掉)。
|
||||
// - Windows 系統匣=完整墨底 icon(系統匣背景不固定,template 那套是 mac 專有)。
|
||||
//
|
||||
// ⚠️ fyne v2.5.3 的判斷點(internal/driver/glfw/driver_desktop.go:169):
|
||||
// **只有 `*theme.ThemedResource` 才會走 `systray.SetTemplateIcon`**,
|
||||
// 傳一般的 `StaticResource` 會走 `SetIcon`=不反色。所以 mac 這條一定要包 ThemedResource,
|
||||
// 不能只是「給一張黑白圖」就以為會自動反色。
|
||||
//
|
||||
// 用 go:embed 內嵌,**不讀外部檔案路徑**——打包成 .app/.msix 後工作目錄不是原始碼目錄,
|
||||
// 靠相對路徑找圖必 404(icon 不見)。
|
||||
var (
|
||||
//go:embed assets/tray-template.png
|
||||
trayTemplatePNG []byte
|
||||
|
||||
//go:embed assets/tray-windows.png
|
||||
trayWindowsPNG []byte
|
||||
)
|
||||
|
||||
// trayIcon 回傳當前平台該用的托盤 icon。
|
||||
func trayIcon() fyne.Resource {
|
||||
if runtime.GOOS == "windows" {
|
||||
return fyne.NewStaticResource("arcrun-tray.png", trayWindowsPNG)
|
||||
}
|
||||
// mac(與 Linux 一併走這條:深色 panel 下同樣需要單色可反轉的圖)
|
||||
return theme.NewThemedResource(
|
||||
fyne.NewStaticResource("arcrun-tray-template.png", trayTemplatePNG),
|
||||
)
|
||||
}
|
||||