戈朗 : Error while make test: signal: killed

标签 go makefile

我在 Golang 项目上运行 make test 时遇到此错误:

signal: killed
FAIL <package name>
make: *** [test] Error 1

相同的代码在昨天之前运行得非常好。 注意:我也尝试在其他分支上进行测试,但结果相同。

最佳答案

2017 年 4 月 27 日更新:

新的 Go1.8.1(2017/04/07 发布)修复了这个问题。请下载并安装最新版本。

旧答案:

主要是命令行工具8.3不兼容。

根据https://github.com/golang/go/issues/19734的解决方案:

  • 使用-ldflags -s选项进行编译或运行

关于戈朗 : Error while make test: signal: killed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43100127/

相关文章:

makefile - 如何修改安装路径而不再次运行配置脚本/cmake

makefile - 编译错误: Kernel module

c - 服务器/客户端程序的 Makefile : "Multiple definitions of main"

go - yaml.v2 Unmarshaller 接口(interface)的有状态实现?

makefile - 在 makefile 中的目标内执行 shell 命令

go - 将字节附加到 golang 中的字节缓冲区

concurrency - 在达到超时之前如何读取 UDP 连接?

makefile - 设计 makefile 来编译不同配置的程序

macos - 戈朗 :alpine docker container on macOS throws "invalid symbol version for go.string" when importing gin-gonic/gin

go - negroni/gorilla mux 的子路由器问题