Documentation
¶
Overview ¶
Package doctor 诊断本机/CI 是否满足 appkit 多私有仓库开发的前置条件。
针对的就是最常见的翻车现场:GOPRIVATE 没设 → go 去 sum.golang.org 校验私有 模块得到 404;git 走匿名 https → "could not read Username"。每项检查都给出 可直接复制的修复命令。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Dir string // 待诊断的仓库目录;空 = 只做全局环境检查
Prefix string // 私有 module 前缀,默认 github.com/forgeplex
GoEnv func(dir string, keys ...string) (map[string]string, error)
GitConfig func() (string, error) // git config --get-regexp ^url\.
LookPath func(file string) (string, error)
ReadFile func(name string) ([]byte, error)
Home string
}
Options 的注入点仅供测试;零值字段使用真实实现。
Click to show internal directories.
Click to hide internal directories.