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

when go version is 1.18beta, versioning.Parse(goVersion) return a error, it cause a panic #15

Open
fish2016 opened this issue Feb 7, 2022 · 0 comments

Comments

@fish2016
Copy link

fish2016 commented Feb 7, 2022

如果go版本号是1.18beta,versioning.Parse(goVersion)解析不出后面的beta,会返回一个error,这会触发后面的panic

go version
go version go1.18beta2 windows/amd64

https://github.com/henrylee2cn/goutil/blob/5b5425bff75ce88e91a6122e91fb7f0d751b8d16/tpack/tpack.go#L20-L27

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