-
Notifications
You must be signed in to change notification settings - Fork 19
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
cmd/fillstruct: broken without modules #31
Comments
I have the same issue. Even if the struct is defined in the same package, but in a different file, I get the I guess a workaround for now is to copy over struct definitions into the same file and then copy them back over to another file in the same package after using this tool. @davidrjenni can you please look into this? |
@klische for me a better workaround is to rollback to the old binary:
|
@klische you could test my PR / fork. |
@mschneider82, @klische sorry for the late response and thank you for the workaround instructions and the PR. I will review the issue and the PR during the weekend. I hope you can still use the tool with the workaround until the issue is resolved. |
thanks @davidrjenni i am sure that there is a better solution than my hack, but it works for now.. I cannot live with a half-broken fillstruct tool! |
@davidrjenni have you had some time to look at this? |
I will test your PR tomorrow. Thank you for this :) |
@mschneider82 could you please test PR #33? It seems to fix the problem for me. |
@klische can you also confirm that the problem is fixed in the current master? |
@davidrjenni I apologize for the late response. I can confirm it is working! This is fantastic. Thank you so much. |
@klische thanks for the feedback! |
I dont have go modules in my project (in $GOPATH/src) and trying to fill a struct in a _test.go file, the struct is defined in the same package but not in the _test.go file.
I always get the message:
When i rollback to commit 654d0ba struct filling in the _test file is working.
The text was updated successfully, but these errors were encountered: