Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go run main.go error #3

Closed
wolf-leo opened this issue Jul 30, 2020 · 8 comments
Closed

go run main.go error #3

wolf-leo opened this issue Jul 30, 2020 · 8 comments
Labels
bug Something isn't working

Comments

@wolf-leo
Copy link

crawlab-lite/managers

managers\execute.go:234:42: unknown field 'Setpgid' in struct literal of type syscall.SysProcAttr
managers\task.go:97:10: undefined: syscall.Kill

@wolf-leo wolf-leo added the bug Something isn't working label Jul 30, 2020
@zkqiang
Copy link
Contributor

zkqiang commented Jul 30, 2020

golang 版本是多少? 操作系统是什么?

@wolf-leo
Copy link
Author

windows 10 64
go version go1.14.3 windows/amd64

@zkqiang
Copy link
Contributor

zkqiang commented Jul 31, 2020

那有点奇怪,windows应该不会走到报错的那行代码

可能是 1.14 版本有些变化

方便的话,可以在 managers\execute.go:233 行,把 runtime.GOOS 的值打印出来看下

@charmer21
Copy link

我也遇到同样的问题

@zkqiang
Copy link
Contributor

zkqiang commented Aug 21, 2020

@charmer21 麻烦按我上面说的打印出来看看?

@Shimon-Cheung
Copy link

打印不出来得,直接编译检查就崩了,我试了想去打印runtime.GOOS

@Shimon-Cheung
Copy link

我试了1.15和1.2.17都报这个错误,可能是windows得原因,作者可以使用windows试试看,就能复现这个错误了

zkqiang added a commit that referenced this issue Sep 20, 2020
@zkqiang
Copy link
Contributor

zkqiang commented Sep 20, 2020

master 分支已修复

@zkqiang zkqiang closed this as completed Sep 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants