deploy-hxtesting / build-and-deploy (push) Successful in 1m52s
- artifacts/ 等未锚定规则会命中任意层级同名目录,导致 frontend/src/views/artifacts/ArtifactLibrary.vue(路由动态导入)、 cli/internal/build/(cli 模块源码)、cmd/desktop/build/(桌面构建资产) 从未入库——本机正常、他人克隆后构建必挂 - 修复: 锚定仓库根 /artifacts/ /dist/ /build/ /tmp/ /temp/ /logs/;补 frontend/dist/ - 找回 6 个被吞文件;顺带清理改名产生的重复规则行
17 lines
429 B
Go
17 lines
429 B
Go
// Package build holds compile-time-injected build metadata.
|
|
//
|
|
// Values are set via -ldflags="-X github.com/Tencent/WeKnora/cli/internal/build.Version=..." at link time;
|
|
// the Makefile's `version` target wires them up.
|
|
package build
|
|
|
|
var (
|
|
Version = "dev"
|
|
Commit = "none"
|
|
Date = "unknown"
|
|
)
|
|
|
|
// Info returns a snapshot of the build metadata.
|
|
func Info() (version, commit, date string) {
|
|
return Version, Commit, Date
|
|
}
|