Skip to content

对golang版本问题有要求 #4

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

Open
tianser opened this issue Apr 27, 2017 · 0 comments
Open

对golang版本问题有要求 #4

tianser opened this issue Apr 27, 2017 · 0 comments

Comments

@tianser
Copy link

tianser commented Apr 27, 2017

至少1.7版本吧,看这里https://golang.org/doc/go1.7关于runtime包中的CallersFrames
1.6版本:
github.com/hzwy23/asofdate/vendor/go.uber.org/zap/stacktrace.go:63: undefined: runtime.CallersFrames

1.8版本:
[root@web asofdate]# ./asofdate
create mysql dbhandle success.
./asofdate flag redefined: graceful
panic: ./asofdate flag redefined: graceful

goroutine 1 [running]:
flag.(*FlagSet).Var(0xc42001c240, 0xe2f6c0, 0xe8d484, 0xb22fc0, 0x8, 0xb3913a, 0x21)
/root/go/src/flag/flag.go:793 +0x420
flag.BoolVar(0xe8d484, 0xb22fc0, 0x8, 0x887400, 0xb3913a, 0x21)
/root/go/src/flag/flag.go:572 +0x72
github.com/hzwy23/asofdate/vendor/github.com/astaxie/beego/grace.init.1()
/root/goproject/src/github.com/hzwy23/asofdate/vendor/github.com/astaxie/beego/grace/grace.go:93 +0x60
github.com/hzwy23/asofdate/vendor/github.com/astaxie/beego/grace.init()
/root/goproject/src/github.com/hzwy23/asofdate/vendor/github.com/astaxie/beego/grace/server.go:307 +0x89
github.com/hzwy23/asofdate/vendor/github.com/astaxie/beego.init()
/root/goproject/src/github.com/hzwy23/asofdate/vendor/github.com/astaxie/beego/tree.go:581 +0x87
github.com/hzwy23/asofdate/hauth/service.init()
/root/goproject/src/github.com/hzwy23/asofdate/hauth/service/sql_define.go:4 +0x7d
main.init()
/root/goproject/src/asofdate/main.go:16 +0x4e
[root@web asofdate]# vim /root/goproject/src/github.com/hzwy23/asofdate/vendor/github.com/astaxie/beego/grace/grace.go
[root@web asofdate]# go version
go version go1.8.1 linux/amd64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant