Qihoo360 / QConf

Qihoo Distributed Configuration Management System
Other
1.87k stars 534 forks source link

GO 编译时在此[golang:1.20-alpine]docker镜像内编译失败? #136

Open admininfon opened 1 year ago

admininfon commented 1 year ago
shell: GOARCH=amd64 go build -o bin/hawk-grpc -ldflags "-s -w" .

请查找下问题, 为啥忽略呢?

找到问题:

  1. 没有在该镜像编译安装QConf
  2. 没有加载cgo编译参数, 文件go_qconf.go import "C" 部分有注释说明, 添加 -L qconf -L m 参数

下面有追加镜像编译打包汇总.

admininfon commented 1 year ago