Closed xiao-arch closed 11 months ago
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-buildvcs=false"
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-buildvcs=false" 这个在哪里加呢
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
What happened?
CGO_ENABLED=0 GOOS=linux GOARCH=amd64; go build -ldflags="-w -s" -o open_im_chat_api error obtaining VCS status: exit status 128
What did you expect to happen?
编译报错 make build make[1]: 进入目录“/home/OpenIM-V3.0/chat/cmd/api/chat_api” CGO_ENABLED=0 GOOS=linux GOARCH=amd64; go build -ldflags="-w -s" -o open_im_chat_api error obtaining VCS status: exit status 128 Use -buildvcs=false to disable VCS stamping. make[1]: [build] 错误 1 make[1]: 离开目录“/home/OpenIM-V3.0/chat/cmd/api/chat_api” make: [install] 错误 2 open_im_chat_api build failed
How can we reproduce it (as minimally and precisely as possible)?
./build_all_service.sh
Anything else we need to know?
No response
version
[root@172-10-32-116 chat]# git branch -a main
Cloud provider
OS version
[root@172-10-32-116 /]# cat /etc/os-release NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"
Install tools