fix: update core dependency path to git.zkcoi.com/zkcoi/meshray (drop /core)
- go.mod require/replace git.zkcoi.com/zkcoi/meshray/core -> git.zkcoi.com/zkcoi/meshray
- .go imports meshray/core/{engine,connect} -> meshray/{engine,connect} (5 files)
- sync CHANGELOG + adapter.go comments
This commit is contained in:
@@ -1,5 +1,23 @@
|
||||
# 变更日志 (CHANGELOG)
|
||||
|
||||
## 2026-07-15 修正依赖的 core 模块路径(去掉失效的 `/core` 后缀)
|
||||
|
||||
### 背景
|
||||
core 仓库 `zkcoi/Meshray` 的 `go.mod` 位于仓库根目录、内无 `core/` 子目录,故其模块路径
|
||||
`git.zkcoi.com/zkcoi/meshray/core` 无法被 `go get` 解析。上一版(manager 模块更名)日志称
|
||||
"core 模块保持不变、仍可由 go get 正确解析" 有误,特此更正:core 模块路径实际应为根模块
|
||||
`git.zkcoi.com/zkcoi/meshray`(仓库名大小写不敏感,`zkcoi/meshray` 即 `zkcoi/Meshray`,可正确解析)。
|
||||
|
||||
### 改动
|
||||
- `go.mod`:`require` / `replace` 中 `git.zkcoi.com/zkcoi/meshray/core` →
|
||||
`git.zkcoi.com/zkcoi/meshray`(replace 仍指向本地兄弟模块 `../Meshray`)。
|
||||
- 全仓 `.go`:core 导入 `git.zkcoi.com/zkcoi/meshray/core/{engine,connect}` →
|
||||
`git.zkcoi.com/zkcoi/meshray/{engine,connect}`(共 5 处:cmd/mr-wg/main.go、
|
||||
internal/ctr/corebind/{registry,bind,adapter}.go)。
|
||||
|
||||
### 验证
|
||||
- `go build ./...` → 0(manager 仓库编译通过,core 引用全部更新)。
|
||||
|
||||
## 2026-07-15 修正 manager 模块路径为 `git.zkcoi.com/zkcoi/Meshray-Manager`
|
||||
|
||||
### 背景
|
||||
|
||||
+2
-2
@@ -21,8 +21,8 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
meshraycore "git.zkcoi.com/zkcoi/meshray/core/engine"
|
||||
"git.zkcoi.com/zkcoi/meshray/core/connect"
|
||||
meshraycore "git.zkcoi.com/zkcoi/meshray/engine"
|
||||
"git.zkcoi.com/zkcoi/meshray/connect"
|
||||
corebind "git.zkcoi.com/zkcoi/Meshray-Manager/internal/ctr/corebind"
|
||||
"go.uber.org/zap"
|
||||
"golang.zx2c4.com/wireguard/conn"
|
||||
|
||||
@@ -6,13 +6,13 @@ go 1.26.0
|
||||
replace git.zkcoi.com/zkcoi/meshray-contract => ./pkg/contract
|
||||
|
||||
// 核心转发引擎 meshray(去中心化 frp 本体 + 9 层传输):独立仓库 zkcoi/Meshray,零 wireguard 依赖。
|
||||
// 其模块路径为 git.zkcoi.com/zkcoi/meshray/core(仓库名 Meshray 与本品 Meshray-Manager 大小写有别、互不相干)。
|
||||
// 其模块路径为 git.zkcoi.com/zkcoi/meshray(仓库名 Meshray 与本品 Meshray-Manager 大小写有别、互不相干)。
|
||||
// 管理器经此 replace 引用本地核心,wg-go 集成(corebind)在本仓库内,二者隔离。
|
||||
replace git.zkcoi.com/zkcoi/meshray/core => ../Meshray
|
||||
replace git.zkcoi.com/zkcoi/meshray => ../Meshray
|
||||
|
||||
require (
|
||||
git.zkcoi.com/zkcoi/meshray-contract v0.0.0
|
||||
git.zkcoi.com/zkcoi/meshray/core v0.0.0
|
||||
git.zkcoi.com/zkcoi/meshray v0.0.0
|
||||
github.com/BurntSushi/toml v1.4.0
|
||||
github.com/getlantern/systray v1.2.2
|
||||
github.com/gin-gonic/gin v1.12.0
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
// Package corebind 的契约类型转换:在 meshray-contract 与 meshray/core 内部类型间双向转换。
|
||||
// Package corebind 的契约类型转换:在 meshray-contract 与 meshray 内部类型间双向转换。
|
||||
package corebind
|
||||
|
||||
import (
|
||||
"git.zkcoi.com/zkcoi/meshray-contract"
|
||||
"git.zkcoi.com/zkcoi/meshray/core/connect"
|
||||
"git.zkcoi.com/zkcoi/meshray/core/engine"
|
||||
"git.zkcoi.com/zkcoi/meshray/connect"
|
||||
"git.zkcoi.com/zkcoi/meshray/engine"
|
||||
)
|
||||
|
||||
// 以下函数完成开源契约类型(contract 包)与 meshray/core 内部类型之间的双向转换。
|
||||
// 以下函数完成开源契约类型(contract 包)与 meshray 内部类型之间的双向转换。
|
||||
// 数值型 Layer 在 contract 与 connect 中定义一致,可直接转型。
|
||||
|
||||
func toCoreCandidates(in []contract.Candidate) []core.Candidate {
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"net"
|
||||
"sync"
|
||||
|
||||
"git.zkcoi.com/zkcoi/meshray/core/engine"
|
||||
"git.zkcoi.com/zkcoi/meshray/engine"
|
||||
"golang.zx2c4.com/wireguard/conn"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"sync"
|
||||
|
||||
"git.zkcoi.com/zkcoi/meshray-contract"
|
||||
"git.zkcoi.com/zkcoi/meshray/core/engine"
|
||||
"git.zkcoi.com/zkcoi/meshray/engine"
|
||||
"go.uber.org/zap"
|
||||
"golang.zx2c4.com/wireguard/conn"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user