-
-
Notifications
You must be signed in to change notification settings - Fork 990
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
Run time panic when compiling with vgo #330
Comments
Could it be that, somehow, (line 83 of
|
Your vgo is probably pulling chi v1.0.0 instead of latest v3.3.2. This is vgo problem.. See #327 and golang/go#25967 |
@VojtechVitek Actually just found out this by myself and was about to close this issue The solution was to change
|
note that v2.0.0 is old version that is not maintained anymore :) |
@VojtechVitek Oh, thanks, which version should I use then? |
The following worked for me
|
Details
The same go-chi implementation shows errors at runtime related to the tool used to compile it. When compiled with
go build
the code snippet (below) runs as expected. When compiled withvgo build
the binary throws a panicError
System details
Ways of reproduce the error
I have the following code snippet:
Compile with,
Then run the binary and the panic above is thrown
Compile as,
Then run the binary and the panic never happens
The text was updated successfully, but these errors were encountered: