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

microgen command doesn't build #29

Closed
nicolaiskogheim opened this issue Nov 27, 2017 · 8 comments
Closed

microgen command doesn't build #29

nicolaiskogheim opened this issue Nov 27, 2017 · 8 comments
Assignees

Comments

@nicolaiskogheim
Copy link
Contributor

Hi!

I tried installing the microgen command, but it won't build.

$ go get -u github.com/devimteam/microgen/cmd/microgen
# github.com/devimteam/microgen/generator/template
generator/template/common.go:80:17: fields[0].Type.Import undefined (type types.Type has no field or method Import)
generator/template/common.go:81:17: fields[0].Type.Import undefined (type types.Type has no field or method Import)
generator/template/common.go:82:23: invalid operation: fields[0].Type.Name == "Context" (mismatched types func() string and string)
generator/template/common.go:95:29: fields[len(fields) - 1].Type.Import undefined (type types.Type has no field or method Import)
generator/template/common.go:96:35: invalid operation: fields[len(fields) - 1].Type.Name == "error" (mismatched types func() string and string)
generator/template/common.go:138:10: field.IsArray undefined (type *types.Type is pointer to interface, not interface)
generator/template/common.go:142:10: field.IsPointer undefined (type *types.Type is pointer to interface, not interface)
generator/template/common.go:145:10: field.IsMap undefined (type *types.Type is pointer to interface, not interface)
generator/template/common.go:146:13: field.Map undefined (type *types.Type is pointer to interface, not interface)
generator/template/common.go:149:10: field.Import undefined (type *types.Type is pointer to interface, not interface)
generator/template/common.go:149:10: too many errors
@nicolaiskogheim
Copy link
Contributor Author

Oh, they changed the type Type interface in vetcher/godecl three days ago. That seems to have broken everything

@vetcher
Copy link
Contributor

vetcher commented Nov 28, 2017

yea, pls use dep to install dependencies for build microgen

@nicolaiskogheim
Copy link
Contributor Author

$ dep ensure
$ go install ./cmd/microgen

This worked nicely. Maybe the README should be updated?

Thanks.

@vetcher
Copy link
Contributor

vetcher commented Nov 28, 2017

reset master branch of vetcher/godecl to 0.2.0

@nicolaiskogheim
Copy link
Contributor Author

Pardon? dep uses the 0.2.0 tag, no?

@vetcher
Copy link
Contributor

vetcher commented Nov 28, 2017

@nicolaiskogheim yes, but go get uses last master commit, so if you install with go get -u github.com/devimteam/microgen/cmd/microgen it should work properly, without dep

@nicolaiskogheim
Copy link
Contributor Author

Except now you use v1.0.0 ;)

@vetcher
Copy link
Contributor

vetcher commented Nov 28, 2017

I'm fast xD

@vetcher vetcher self-assigned this Jan 9, 2018
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

2 participants